summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Bicking <ianb@colorstudy.com>2010-09-02 03:35:11 -0500
committerIan Bicking <ianb@colorstudy.com>2010-09-02 03:35:11 -0500
commitc41f834742d83d678144095531ad5341c948e4d8 (patch)
treec485101921be7812ffa4156c5f434629914dc5d1 /tests
parentb5a97e752ab1875c2b56e3591f0fce3abc9e31d0 (diff)
downloadpaste-c41f834742d83d678144095531ad5341c948e4d8.tar.gz
Catch cookie errors when parsing cookies (http://trac.pythonpaste.org/pythonpaste/ticket/189)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_request.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_request.py b/tests/test_request.py
index c2cf940..3d882ed 100644
--- a/tests/test_request.py
+++ b/tests/test_request.py
@@ -58,3 +58,5 @@ def test_bad_cookie():
assert get_cookie_dict(env) == {}
env['HTTP_COOKIE'] = '=foo'
assert get_cookie_dict(env) == {}
+ env['HTTP_COOKIE'] = '?='
+ assert get_cookie_dict(env) == {}