summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorianb <devnull@localhost>2008-03-26 02:24:48 +0000
committerianb <devnull@localhost>2008-03-26 02:24:48 +0000
commitfe678eb753629f27048e6fd8986e5db010fc5a7c (patch)
treee9fc61fd8ae0acdd6325e8fca974e9077a1d8e29 /tests
parenta210e9adaeef670c1d9f689316d9559cd13fa910 (diff)
downloadpaste-fe678eb753629f27048e6fd8986e5db010fc5a7c.tar.gz
Requests can send more than one cookie (#238)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_fixture.py10
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)