Home / Function/ test_should_strip_auth_host_change() — requests Function Reference

test_should_strip_auth_host_change() — requests Function Reference

Architecture documentation for the test_should_strip_auth_host_change() function in test_requests.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  a14387d7_30d6_fabe_352d_97e69720d4a1["test_should_strip_auth_host_change()"]
  22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"]
  a14387d7_30d6_fabe_352d_97e69720d4a1 -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14
  style a14387d7_30d6_fabe_352d_97e69720d4a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_requests.py lines 1901–1905

    def test_should_strip_auth_host_change(self):
        s = requests.Session()
        assert s.should_strip_auth(
            "http://example.com/foo", "http://another.example.com/"
        )

Domain

Subdomains

Frequently Asked Questions

What does test_should_strip_auth_host_change() do?
test_should_strip_auth_host_change() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_should_strip_auth_host_change() defined?
test_should_strip_auth_host_change() is defined in tests/test_requests.py at line 1901.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free