test_cookie_as_dict_keeps_len() — requests Function Reference
Architecture documentation for the test_cookie_as_dict_keeps_len() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD be509ca4_5f1f_353a_17f0_c8cacaa32c32["test_cookie_as_dict_keeps_len()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] be509ca4_5f1f_353a_17f0_c8cacaa32c32 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style be509ca4_5f1f_353a_17f0_c8cacaa32c32 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 1282–1300
def test_cookie_as_dict_keeps_len(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 len(jar) == 2
assert len(d1) == 2
assert len(d2) == 2
assert len(d3) == 2
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_cookie_as_dict_keeps_len() do?
test_cookie_as_dict_keeps_len() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_cookie_as_dict_keeps_len() defined?
test_cookie_as_dict_keeps_len() is defined in tests/test_requests.py at line 1282.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free