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

Method test_delitem

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

Source from the content-addressed store, hash-verified

2344 assert list(cid.keys()) == ["SPAM"]
2345
2346 def test_delitem(self):
2347 cid = CaseInsensitiveDict()
2348 cid["Spam"] = "someval"
2349 del cid["sPam"]
2350 assert "spam" not in cid
2351 assert len(cid) == 0
2352
2353 def test_contains(self):
2354 cid = CaseInsensitiveDict()

Callers

nothing calls this directly

Calls 1

CaseInsensitiveDictClass · 0.90

Tested by

no test coverage detected