summaryrefslogtreecommitdiff
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 02:39:39 +0100
commitedaacc41124c562961df478be1382773216cac55 (patch)
treed0ffd01048555ea2dc9602ccd124839855a1f5ec
parent7b6978553aa8cde493f02ddd93bbd711afbf28ae (diff)
[1.5.x] 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. Backport of 419e2137fabdcadadc728cb9bd94af929157dc3b from master
-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()