diff options
author | ianb <devnull@localhost> | 2008-03-26 02:24:48 +0000 |
---|---|---|
committer | ianb <devnull@localhost> | 2008-03-26 02:24:48 +0000 |
commit | fe678eb753629f27048e6fd8986e5db010fc5a7c (patch) | |
tree | e9fc61fd8ae0acdd6325e8fca974e9077a1d8e29 /tests | |
parent | a210e9adaeef670c1d9f689316d9559cd13fa910 (diff) | |
download | paste-fe678eb753629f27048e6fd8986e5db010fc5a7c.tar.gz |
Requests can send more than one cookie (#238)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_fixture.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test_fixture.py b/tests/test_fixture.py index 310a332..ba56488 100644 --- a/tests/test_fixture.py +++ b/tests/test_fixture.py @@ -16,3 +16,13 @@ def test_fixture(): def items(self): return [('a', '10'), ('a', '20')] res = app.post('/params', params=FakeDict()) + + # test multiple cookies in one request + app.cookies['one'] = 'first'; + app.cookies['two'] = 'second'; + app.cookies['three'] = ''; + res = app.get('/') + hc = res.request.environ['HTTP_COOKIE'].split('; '); + assert ('one=first' in hc) + assert ('two=second' in hc) + assert ('three=' in hc) |