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

Method test_localhost_domain_contents

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

Source from the content-addressed store, hash-verified

992 self.assertEqual(len(c), 1)
993
994 def test_localhost_domain_contents(self):
995 c = CookieJar()
996
997 interact_netscape(c, "http://localhost", "foo=bar; domain=localhost;")
998
999 self.assertEqual(c._cookies[".localhost"]["/"]["foo"].value, "bar")
1000
1001 def test_localhost_domain_contents_2(self):
1002 c = CookieJar()

Callers

nothing calls this directly

Calls 3

CookieJarClass · 0.90
interact_netscapeFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected