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

Method test_update_retains_unchanged

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

Source from the content-addressed store, hash-verified

2380 assert cid["bar"] == "anotherbar"
2381
2382 def test_update_retains_unchanged(self):
2383 cid = CaseInsensitiveDict({"foo": "foo", "bar": "bar"})
2384 cid.update({"foo": "newfoo"})
2385 assert cid["bar"] == "bar"
2386
2387 def test_iter(self):
2388 cid = CaseInsensitiveDict({"Spam": "spam", "Eggs": "eggs"})

Callers

nothing calls this directly

Calls 2

CaseInsensitiveDictClass · 0.90
updateMethod · 0.80

Tested by

no test coverage detected