MCPcopy
hub / github.com/urllib3/urllib3 / test_update

Method test_update

test/test_collections.py:222–226  ·  view source on GitHub ↗
(self, d: HTTPHeaderDict)

Source from the content-addressed store, hash-verified

220 assert d.getlist("cookie") == ["with, comma"]
221
222 def test_update(self, d: HTTPHeaderDict) -> None:
223 d.update(dict(Cookie="foo"))
224 assert d["cookie"] == "foo"
225 d.update(dict(cookie="with, comma"))
226 assert d.getlist("cookie") == ["with, comma"]
227
228 def test_delitem(self, d: HTTPHeaderDict) -> None:
229 del d["cookie"]

Callers

nothing calls this directly

Calls 1

getlistMethod · 0.80

Tested by

no test coverage detected