(self)
| 1014 | r.content = "foo" |
| 1015 | |
| 1016 | def test_unknown_ce(self): |
| 1017 | r = tresp() |
| 1018 | r.headers["content-encoding"] = "zopfli" |
| 1019 | r.raw_content = b"foo" |
| 1020 | with pytest.raises(ValueError): |
| 1021 | assert r.content |
| 1022 | assert r.headers["content-encoding"] |
| 1023 | assert r.get_content(strict=False) == b"foo" |
| 1024 | |
| 1025 | def test_utf8_as_ce(self): |
| 1026 | r = tresp() |
nothing calls this directly
no test coverage detected