summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorianb <devnull@localhost>2008-02-17 17:33:04 +0000
committerianb <devnull@localhost>2008-02-17 17:33:04 +0000
commit93079ddfb7b5ab52fdf1a41e372ff8b41b35d759 (patch)
treeb0128dd668ccd6aec5a382108efc10ba86f79530 /tests
parent09596eaa928fe973bacb31ee1e0fe73a252df040 (diff)
downloadpaste-93079ddfb7b5ab52fdf1a41e372ff8b41b35d759.tar.gz
Look for params values that have an .items method
Diffstat (limited to 'tests')
-rw-r--r--tests/test_fixture.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_fixture.py b/tests/test_fixture.py
index 576d375..310a332 100644
--- a/tests/test_fixture.py
+++ b/tests/test_fixture.py
@@ -12,4 +12,7 @@ def test_fixture():
res = app.delete('/')
assert (res.request.environ['REQUEST_METHOD'] ==
'DELETE')
-
+ class FakeDict(object):
+ def items(self):
+ return [('a', '10'), ('a', '20')]
+ res = app.post('/params', params=FakeDict())