MCPcopy
hub / github.com/psf/requests / test_docstring_example

Method test_docstring_example

tests/test_requests.py:2319–2323  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2317 assert "bar" in cid
2318
2319 def test_docstring_example(self):
2320 cid = CaseInsensitiveDict()
2321 cid["Accept"] = "application/json"
2322 assert cid["aCCEPT"] == "application/json"
2323 assert list(cid) == ["Accept"]
2324
2325 def test_len(self):
2326 cid = CaseInsensitiveDict({"a": "a", "b": "b"})

Callers

nothing calls this directly

Calls 1

CaseInsensitiveDictClass · 0.90

Tested by

no test coverage detected