Home / Function/ test_guess_by_bom() — requests Function Reference

test_guess_by_bom() — requests Function Reference

Architecture documentation for the test_guess_by_bom() function in test_utils.py from the requests codebase.

Entity Profile

Dependency Diagram

graph TD
  be184a75_aab0_3c4c_c753_6b5bf8cd7199["test_guess_by_bom()"]
  696afb1b_f9a7_889a_c705_b973d3155e32["TestGuessJSONUTF"]
  be184a75_aab0_3c4c_c753_6b5bf8cd7199 -->|defined in| 696afb1b_f9a7_889a_c705_b973d3155e32
  style be184a75_aab0_3c4c_c753_6b5bf8cd7199 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_utils.py lines 425–427

    def test_guess_by_bom(self, encoding, expected):
        data = "\ufeff{}".encode(encoding)
        assert guess_json_utf(data) == expected

Domain

Subdomains

Defined In

Frequently Asked Questions

What does test_guess_by_bom() do?
test_guess_by_bom() is a function in the requests codebase, defined in tests/test_utils.py.
Where is test_guess_by_bom() defined?
test_guess_by_bom() is defined in tests/test_utils.py at line 425.

Analyze Your Own Codebase

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

Try Supermodel Free