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

Method test_get

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

Source from the content-addressed store, hash-verified

2360 assert "notspam" not in cid
2361
2362 def test_get(self):
2363 cid = CaseInsensitiveDict()
2364 cid["spam"] = "oneval"
2365 cid["SPAM"] = "blueval"
2366 assert cid.get("spam") == "blueval"
2367 assert cid.get("SPAM") == "blueval"
2368 assert cid.get("sPam") == "blueval"
2369 assert cid.get("notspam", "default") == "default"
2370
2371 def test_update(self):
2372 cid = CaseInsensitiveDict()

Callers

nothing calls this directly

Calls 2

CaseInsensitiveDictClass · 0.90
getMethod · 0.45

Tested by

no test coverage detected