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

Method test_equality

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

Source from the content-addressed store, hash-verified

2390 assert frozenset(iter(cid)) == keys
2391
2392 def test_equality(self):
2393 cid = CaseInsensitiveDict({"SPAM": "blueval", "Eggs": "redval"})
2394 othercid = CaseInsensitiveDict({"spam": "blueval", "eggs": "redval"})
2395 assert cid == othercid
2396 del othercid["spam"]
2397 assert cid != othercid
2398 assert cid == {"spam": "blueval", "eggs": "redval"}
2399 assert cid != object()
2400
2401 def test_setdefault(self):
2402 cid = CaseInsensitiveDict({"Spam": "blueval"})

Callers

nothing calls this directly

Calls 1

CaseInsensitiveDictClass · 0.90

Tested by

no test coverage detected