diff options
author | ianb <devnull@localhost> | 2006-09-10 18:21:32 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2006-09-10 18:21:32 +0000 |
commit | 641d1d38fadedf49b2204af5b5ddeb225bb393ee (patch) | |
tree | 58eaa9ed9b45af305c52afbdced21b08920116e9 /tests/test_fixture.py | |
parent | 9e2c1c9bb14e9b6d56b9f0826f3d62f08fdce462 (diff) | |
download | paste-641d1d38fadedf49b2204af5b5ddeb225bb393ee.tar.gz |
Fix case when using TestApp, and params={'key': ['list', 'of', 'values']}, as reported by Syver Enstad
Diffstat (limited to 'tests/test_fixture.py')
-rw-r--r-- | tests/test_fixture.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test_fixture.py b/tests/test_fixture.py new file mode 100644 index 0000000..2be1d9d --- /dev/null +++ b/tests/test_fixture.py @@ -0,0 +1,9 @@ +from paste.debug.debugapp import SimpleApplication +from paste.fixture import TestApp + +def test_fixture(): + app = TestApp(SimpleApplication()) + res = app.get('/', params={'a': ['1', '2']}) + assert (res.request.environ['QUERY_STRING'] == + 'a=1&a=2') + |