(self, d: HTTPHeaderDict)
| 399 | assert "Cookie" not in items # type: ignore[comparison-overlap] |
| 400 | |
| 401 | def test_dict_conversion(self, d: HTTPHeaderDict) -> None: |
| 402 | # Also tested in connectionpool, needs to preserve case |
| 403 | hdict = { |
| 404 | "Content-Length": "0", |
| 405 | "Content-type": "text/plain", |
| 406 | "Server": "Hypercorn/1.2.3", |
| 407 | } |
| 408 | h = dict(HTTPHeaderDict(hdict).items()) |
| 409 | assert hdict == h |
| 410 | assert hdict == dict(HTTPHeaderDict(hdict)) |
| 411 | |
| 412 | def test_string_enforcement(self, d: HTTPHeaderDict) -> None: |
| 413 | # This currently throws AttributeError on key.lower(), should |
nothing calls this directly
no test coverage detected