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

Method test_setdefault

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

Source from the content-addressed store, hash-verified

2399 assert cid != object()
2400
2401 def test_setdefault(self):
2402 cid = CaseInsensitiveDict({"Spam": "blueval"})
2403 assert cid.setdefault("spam", "notblueval") == "blueval"
2404 assert cid.setdefault("notspam", "notblueval") == "notblueval"
2405
2406 def test_lower_items(self):
2407 cid = CaseInsensitiveDict(

Callers

nothing calls this directly

Calls 1

CaseInsensitiveDictClass · 0.90

Tested by

no test coverage detected