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

Method test_path_mirror

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

Source from the content-addressed store, hash-verified

1286 self.assertIn('$Domain="bar.com"', h, "domain not returned")
1287
1288 def test_path_mirror(self):
1289 pol = DefaultCookiePolicy(rfc2965=True)
1290
1291 c = CookieJar(pol)
1292 url = "http://foo.bar.com/"
1293 interact_2965(c, url, "spam=eggs; Version=1")
1294 h = interact_2965(c, url)
1295 self.assertNotIn("Path", h, "absent path returned with path present")
1296
1297 c = CookieJar(pol)
1298 url = "http://foo.bar.com/"
1299 interact_2965(c, url, 'spam=eggs; Version=1; Path=/')
1300 h = interact_2965(c, url)
1301 self.assertIn('$Path="/"', h, "path not returned")
1302
1303 def test_port_mirror(self):
1304 pol = DefaultCookiePolicy(rfc2965=True)

Callers

nothing calls this directly

Calls 5

DefaultCookiePolicyClass · 0.90
CookieJarClass · 0.90
interact_2965Function · 0.85
assertNotInMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected