test_session_get_adapter_prefix_matching_is_case_insensitive() — requests Function Reference
Architecture documentation for the test_session_get_adapter_prefix_matching_is_case_insensitive() function in test_requests.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 935aea1b_840e_f54f_ee15_c7d8b47563ab["test_session_get_adapter_prefix_matching_is_case_insensitive()"] 22b80b19_26d4_cd0e_c476_3edf87b3df14["TestRequests"] 935aea1b_840e_f54f_ee15_c7d8b47563ab -->|defined in| 22b80b19_26d4_cd0e_c476_3edf87b3df14 style 935aea1b_840e_f54f_ee15_c7d8b47563ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_requests.py lines 1685–1695
def test_session_get_adapter_prefix_matching_is_case_insensitive(self):
mixed_case_prefix = "hTtPs://eXamPle.CoM/MixEd_CAse_PREfix"
url_matching_prefix_with_different_case = (
"HtTpS://exaMPLe.cOm/MiXeD_caSE_preFIX/another_url"
)
s = requests.Session()
my_adapter = HTTPAdapter()
s.mount(mixed_case_prefix, my_adapter)
assert s.get_adapter(url_matching_prefix_with_different_case) is my_adapter
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_session_get_adapter_prefix_matching_is_case_insensitive() do?
test_session_get_adapter_prefix_matching_is_case_insensitive() is a function in the requests codebase, defined in tests/test_requests.py.
Where is test_session_get_adapter_prefix_matching_is_case_insensitive() defined?
test_session_get_adapter_prefix_matching_is_case_insensitive() is defined in tests/test_requests.py at line 1685.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free