Home / Function/ test_contains() — requests Function Reference

test_contains() — requests Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

tests/test_requests.py lines 2325–2332

    def test_contains(self):
        cid = CaseInsensitiveDict()
        cid["Spam"] = "someval"
        assert "Spam" in cid
        assert "spam" in cid
        assert "SPAM" in cid
        assert "sPam" in cid
        assert "notspam" not in cid

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free