From 93079ddfb7b5ab52fdf1a41e372ff8b41b35d759 Mon Sep 17 00:00:00 2001 From: ianb Date: Sun, 17 Feb 2008 17:33:04 +0000 Subject: Look for params values that have an .items method --- tests/test_fixture.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests') 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()) -- cgit v1.2.1