test_cookie_as_dict_keeps_items() — requests Function Reference
Architecture documentation for the test_cookie_as_dict_keeps_items() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 0a75fddc_1e0a_dfd0_aa32_d54ca0b8cabb["test_cookie_as_dict_keeps_items()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] 0a75fddc_1e0a_dfd0_aa32_d54ca0b8cabb -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style 0a75fddc_1e0a_dfd0_aa32_d54ca0b8cabb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 1302–1319
def test_cookie_as_dict_keeps_items(self):
key = "some_cookie"
value = "some_value"
key1 = "some_cookie1"
value1 = "some_value1"
jar = requests.cookies.RequestsCookieJar()
jar.set(key, value)
jar.set(key1, value1)
d1 = dict(jar)
d2 = dict(jar.iteritems())
d3 = dict(jar.items())
assert d1["some_cookie"] == "some_value"
assert d2["some_cookie"] == "some_value"
assert d3["some_cookie1"] == "some_value1"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_cookie_as_dict_keeps_items() do?
test_cookie_as_dict_keeps_items() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_cookie_as_dict_keeps_items() defined?
test_cookie_as_dict_keeps_items() is defined in tests/test_requests.py at line 1302.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free