Home / Function/ test_equality() — requests Function Reference

test_equality() — requests Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  07bb9c27_f473_4088_7d79_af30720cdd60["test_equality()"]
  1af73de2_d781_73a2_a172_8a628d8b069d["TestCaseInsensitiveDict"]
  07bb9c27_f473_4088_7d79_af30720cdd60 -->|defined in| 1af73de2_d781_73a2_a172_8a628d8b069d
  style 07bb9c27_f473_4088_7d79_af30720cdd60 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

tests/test_requests.py lines 2364–2371

    def test_equality(self):
        cid = CaseInsensitiveDict({"SPAM": "blueval", "Eggs": "redval"})
        othercid = CaseInsensitiveDict({"spam": "blueval", "eggs": "redval"})
        assert cid == othercid
        del othercid["spam"]
        assert cid != othercid
        assert cid == {"spam": "blueval", "eggs": "redval"}
        assert cid != object()

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free