diff options
author | ianb <devnull@localhost> | 2008-02-17 17:33:04 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2008-02-17 17:33:04 +0000 |
commit | 93079ddfb7b5ab52fdf1a41e372ff8b41b35d759 (patch) | |
tree | b0128dd668ccd6aec5a382108efc10ba86f79530 /tests | |
parent | 09596eaa928fe973bacb31ee1e0fe73a252df040 (diff) | |
download | paste-93079ddfb7b5ab52fdf1a41e372ff8b41b35d759.tar.gz |
Look for params values that have an .items method
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_fixture.py | 5 |
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()) |