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

Method test_len

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

Source from the content-addressed store, hash-verified

2323 assert list(cid) == ["Accept"]
2324
2325 def test_len(self):
2326 cid = CaseInsensitiveDict({"a": "a", "b": "b"})
2327 cid["A"] = "a"
2328 assert len(cid) == 2
2329
2330 def test_getitem(self):
2331 cid = CaseInsensitiveDict({"Spam": "blueval"})

Callers

nothing calls this directly

Calls 1

CaseInsensitiveDictClass · 0.90

Tested by

no test coverage detected