test_cookie_policy_copy() — requests Function Reference
Architecture documentation for the test_cookie_policy_copy() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD d10cbacc_5d6d_8119_f509_7b72fdacea59["test_cookie_policy_copy()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] d10cbacc_5d6d_8119_f509_7b72fdacea59 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style d10cbacc_5d6d_8119_f509_7b72fdacea59 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 1401–1407
def test_cookie_policy_copy(self):
class MyCookiePolicy(cookielib.DefaultCookiePolicy):
pass
jar = requests.cookies.RequestsCookieJar()
jar.set_policy(MyCookiePolicy())
assert isinstance(jar.copy().get_policy(), MyCookiePolicy)
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_cookie_policy_copy() do?
test_cookie_policy_copy() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_cookie_policy_copy() defined?
test_cookie_policy_copy() is defined in tests/test_requests.py at line 1401.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free