MCPcopy
hub / github.com/urllib3/urllib3 / test_getlist

Method test_getlist

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

Source from the content-addressed store, hash-verified

316 assert d == h
317
318 def test_getlist(self, d: HTTPHeaderDict) -> None:
319 assert d.getlist("cookie") == ["foo", "bar"]
320 assert d.getlist("Cookie") == ["foo", "bar"]
321 assert d.getlist("b") == []
322 d.add("b", "asdf")
323 assert d.getlist("b") == ["asdf"]
324
325 def test_getlist_with_bytes_key(self, d: HTTPHeaderDict) -> None:
326 assert d.getlist(b"cookie") == ["foo", "bar"] # type: ignore[call-overload]

Callers

nothing calls this directly

Calls 2

getlistMethod · 0.80
addMethod · 0.80

Tested by

no test coverage detected