summaryrefslogtreecommitdiff
path: root/tests/regressiontests/requests/tests.py
diff options
context:
space:
mode:
authorIan Clelland <ian@fullfactor.com>2012-09-28 08:09:05 -0700
committerLuke Plant <L.Plant.98@cantab.net>2012-10-26 01:40:32 +0100
commit02dda22832d313bde18798b2f5f1e9120a849815 (patch)
tree3ab765dd21a0c0235656563ef795f32b97c4ee87 /tests/regressiontests/requests/tests.py
parent3629a159f97b03f1142acdea03bdfa91edecea8d (diff)
Don't use : as an invalid cookie character
Since http://bugs.python.org/issue2193 has been resolved in favour of the colon in cookie names, we need to test invalid cookie removal using a different character. "@" is still considered invalid by all sources.
Diffstat (limited to 'tests/regressiontests/requests/tests.py')
-rw-r--r--tests/regressiontests/requests/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/regressiontests/requests/tests.py b/tests/regressiontests/requests/tests.py
index 9a3197a06a..6522620d5f 100644
--- a/tests/regressiontests/requests/tests.py
+++ b/tests/regressiontests/requests/tests.py
@@ -57,7 +57,7 @@ class RequestsTests(unittest.TestCase):
str_prefix("<WSGIRequest\npath:/otherpath/,\nGET:{%(_)s'a': %(_)s'b'},\nPOST:{%(_)s'c': %(_)s'd'},\nCOOKIES:{%(_)s'e': %(_)s'f'},\nMETA:{%(_)s'g': %(_)s'h'}>"))
def test_parse_cookie(self):
- self.assertEqual(parse_cookie('invalid:key=true'), {})
+ self.assertEqual(parse_cookie('invalid@key=true'), {})
def test_httprequest_location(self):
request = HttpRequest()