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

Method test_quote_cookie_value

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

Source from the content-addressed store, hash-verified

1247 self.assertFalse(req.has_header("Cookie"))
1248
1249 def test_quote_cookie_value(self):
1250 c = CookieJar(policy=DefaultCookiePolicy(rfc2965=True))
1251 interact_2965(c, "http://www.acme.com/", r'foo=\b"a"r; Version=1')
1252 h = interact_2965(c, "http://www.acme.com/")
1253 self.assertEqual(h, r'$Version=1; foo=\\b\"a\"r')
1254
1255 def test_missing_final_slash(self):
1256 # Missing slash from request URL's abs_path should be assumed present.

Callers

nothing calls this directly

Calls 4

CookieJarClass · 0.90
DefaultCookiePolicyClass · 0.90
interact_2965Function · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected