test_set_cookie_on_301() — requests Function Reference
Architecture documentation for the test_set_cookie_on_301() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 10f45442_e2fe_910a_340f_0008a7aeb504["test_set_cookie_on_301()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] 10f45442_e2fe_910a_340f_0008a7aeb504 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style 10f45442_e2fe_910a_340f_0008a7aeb504 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 376–380
def test_set_cookie_on_301(self, httpbin):
s = requests.session()
url = httpbin("cookies/set?foo=bar")
s.get(url)
assert s.cookies["foo"] == "bar"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_set_cookie_on_301() do?
test_set_cookie_on_301() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_set_cookie_on_301() defined?
test_set_cookie_on_301() is defined in tests/test_requests.py at line 376.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free