test_precedence() — requests Function Reference
Architecture documentation for the test_precedence() function in test_utils.py from the requests codebase.
Entity Profile
Dependency Diagram
graph TD 6d1238ca_b541_a999_6f12_3540125871b0["test_precedence()"] 7b9bc687_6c61_d56e_8a1d_71fe58dce6c4["TestContentEncodingDetection"] 6d1238ca_b541_a999_6f12_3540125871b0 -->|defined in| 7b9bc687_6c61_d56e_8a1d_71fe58dce6c4 style 6d1238ca_b541_a999_6f12_3540125871b0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_utils.py lines 386–392
def test_precedence(self):
content = """
<?xml version="1.0" encoding="XML"?>
<meta charset="HTML5">
<meta http-equiv="Content-type" content="text/html;charset=HTML4" />
""".strip()
assert get_encodings_from_content(content) == ["HTML5", "HTML4", "XML"]
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_precedence() do?
test_precedence() is a function in the requests codebase, defined in tests/test_utils.py.
Where is test_precedence() defined?
test_precedence() is defined in tests/test_utils.py at line 386.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free