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

Method test_default_path_with_query

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

Source from the content-addressed store, hash-verified

759 self.assertIn("/blah/rhubarb", c._cookies["www.acme.com"])
760
761 def test_default_path_with_query(self):
762 cj = CookieJar()
763 uri = "http://example.com/?spam/eggs"
764 value = 'eggs="bar"'
765 interact_netscape(cj, uri, value)
766 # Default path does not include query, so is "/", not "/?spam".
767 self.assertIn("/", cj._cookies["example.com"])
768 # Cookie is sent back to the same URI.
769 self.assertEqual(interact_netscape(cj, uri), value)
770
771 @support.subTests('arg,result', [
772 # quoted safe

Callers

nothing calls this directly

Calls 4

CookieJarClass · 0.90
interact_netscapeFunction · 0.85
assertInMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected