MCPcopy Index your code
hub / github.com/python/cpython / test_ns_parser_special_names

Method test_ns_parser_special_names

Lib/test/test_http_cookiejar.py:653–662  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

651 self.assertIsNone(cookie.value)
652
653 def test_ns_parser_special_names(self):
654 # names such as 'expires' are not special in first name=value pair
655 # of Set-Cookie: header
656 c = CookieJar()
657 interact_netscape(c, "http://www.acme.com/", 'expires=eggs')
658 interact_netscape(c, "http://www.acme.com/", 'version=eggs; spam=eggs')
659
660 cookies = c._cookies["www.acme.com"]["/"]
661 self.assertIn('expires', cookies)
662 self.assertIn('version', cookies)
663
664 def test_expires(self):
665 # if expires is in future, keep cookie...

Callers

nothing calls this directly

Calls 3

CookieJarClass · 0.90
interact_netscapeFunction · 0.85
assertInMethod · 0.80

Tested by

no test coverage detected