MCPcopy
hub / github.com/urllib3/urllib3 / test_get_case_insensitive_headers

Method test_get_case_insensitive_headers

test/test_response.py:1876–1880  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1874 assert r.getheaders() is r.headers
1875
1876 def test_get_case_insensitive_headers(self) -> None:
1877 headers = {"host": "example.com"}
1878 r = HTTPResponse(headers=headers)
1879 assert r.headers.get("host") == r.getheader("host") == "example.com"
1880 assert r.headers.get("Host") == r.getheader("Host") == "example.com"
1881
1882 def test_retries(self) -> None:
1883 fp = BytesIO(b"")

Callers

nothing calls this directly

Calls 3

HTTPResponseClass · 0.90
getMethod · 0.80
getheaderMethod · 0.80

Tested by

no test coverage detected