Ticket #13007: 13007_testcase.diff
File 13007_testcase.diff, 955 bytes (added by , 14 years ago) |
---|
-
tests/regressiontests/httpwrappers/tests.py
1 1 import copy 2 2 import pickle 3 3 4 from django.http import QueryDict, HttpResponse, CompatCookie, BadHeaderError 4 from django.http import QueryDict, HttpResponse, CompatCookie, BadHeaderError, \ 5 parse_cookie 5 6 from django.utils import unittest 6 7 7 8 class QueryDictTests(unittest.TestCase): … … 264 265 c2 = CompatCookie() 265 266 c2.load(c.output()) 266 267 self.assertEqual(c['test'].value, c2['test'].value) 268 269 def test_nonstandard_keys(self): 270 """ 271 Test that a single non-standard cookie name doesn't affect all cookies. 272 """ 273 self.assert_('good_cookie' in parse_cookie('good_cookie=yes;bad:cookie=yes').keys())