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

Method test_wrong_domain

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

Source from the content-addressed store, hash-verified

913 self.assertFalse(user_domain_match("192.168.1.1", ""))
914
915 def test_wrong_domain(self):
916 # Cookies whose effective request-host name does not domain-match the
917 # domain are rejected.
918
919 # XXX far from complete
920 c = CookieJar()
921 interact_2965(c, "http://www.nasty.com/",
922 'foo=bar; domain=friendly.org; Version="1"')
923 self.assertEqual(len(c), 0)
924
925 def test_strict_domain(self):
926 # Cookies whose domain is a country-code tld like .co.uk should

Callers

nothing calls this directly

Calls 3

CookieJarClass · 0.90
interact_2965Function · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected