MCPcopy
hub / github.com/psf/requests / test_cookie_policy_copy

Method test_cookie_policy_copy

tests/test_requests.py:1409–1415  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1407 jar.get(key)
1408
1409 def test_cookie_policy_copy(self):
1410 class MyCookiePolicy(cookielib.DefaultCookiePolicy):
1411 pass
1412
1413 jar = requests.cookies.RequestsCookieJar()
1414 jar.set_policy(MyCookiePolicy())
1415 assert isinstance(jar.copy().get_policy(), MyCookiePolicy)
1416
1417 def test_time_elapsed_blank(self, httpbin):
1418 r = requests.get(httpbin("get"))

Callers

nothing calls this directly

Calls 3

copyMethod · 0.95
MyCookiePolicyClass · 0.85
get_policyMethod · 0.80

Tested by

no test coverage detected