Example #1
0
 def test_repeated_nonstandard_keys(self):
     """
     Test that a repeated non-standard name doesn't affect all cookies. Ticket #15852
     """
     self.assertTrue('good_cookie' in parse_cookie('a,=b; a,=c; good_cookie=yes').keys())
Example #2
0
 def test_parse_cookie(self):
     self.assertEqual(parse_cookie("invalid:key=true"), {})
Example #3
0
 def test_nonstandard_keys(self):
     """
     Test that a single non-standard cookie name doesn't affect all cookies. Ticket #13007.
     """
     self.assertTrue('good_cookie' in parse_cookie('good_cookie=yes;bad:cookie=yes').keys())