(self)
| 418 | assert r.read() == b"" |
| 419 | |
| 420 | def test_decode_gzip_multi_member(self) -> None: |
| 421 | compress = zlib.compressobj(6, zlib.DEFLATED, 16 + zlib.MAX_WBITS) |
| 422 | data = compress.compress(b"foo") |
| 423 | data += compress.flush() |
| 424 | data = data * 3 |
| 425 | |
| 426 | fp = BytesIO(data) |
| 427 | r = HTTPResponse(fp, headers={"content-encoding": "gzip"}) |
| 428 | |
| 429 | assert r.data == b"foofoofoo" |
| 430 | |
| 431 | def test_decode_gzip_error(self) -> None: |
| 432 | fp = BytesIO(b"foo") |
nothing calls this directly
no test coverage detected