(self)
| 42 | assert h.getlist("X-Forwarded-For") is not hlist |
| 43 | |
| 44 | def test_multivalue_for_one_header(self): |
| 45 | h = Headers((("a", "b"), ("a", "c"))) |
| 46 | assert h["a"] == b"c" |
| 47 | assert h.get("a") == b"c" |
| 48 | assert h.getlist("a") == [b"b", b"c"] |
| 49 | |
| 50 | def test_encode_utf8(self): |
| 51 | h = Headers({"key": "\xa3"}, encoding="utf-8") |