MCPcopy
hub / github.com/encode/httpx / test_headers_insert_appends_if_new

Function test_headers_insert_appends_if_new

tests/models/test_headers.py:72–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71
72def test_headers_insert_appends_if_new():
73 headers = httpx.Headers({"a": "a", "b": "b", "c": "c"})
74 headers["d"] = "123"
75 assert list(headers.values()) == ["a", "b", "c", "123"]
76
77
78def test_headers_insert_removes_all_existing():

Callers

nothing calls this directly

Calls 1

valuesMethod · 0.95

Tested by

no test coverage detected