(self)
| 55 | assert r.pretty_url == "https://foo.com:22/path" |
| 56 | |
| 57 | def test_constrain_encoding(self): |
| 58 | r = treq() |
| 59 | r.headers["accept-encoding"] = "gzip, oink" |
| 60 | r.constrain_encoding() |
| 61 | assert "oink" not in r.headers["accept-encoding"] |
| 62 | |
| 63 | r.headers.set_all("accept-encoding", ["gzip", "oink"]) |
| 64 | r.constrain_encoding() |
| 65 | assert "oink" not in r.headers["accept-encoding"] |
| 66 | |
| 67 | def test_get_content_type(self): |
| 68 | resp = tresp() |
nothing calls this directly
no test coverage detected