MCPcopy
hub / github.com/scrapy/scrapy / test_gunzip_illegal_eof

Function test_gunzip_illegal_eof

tests/test_utils_gz.py:53–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51
52
53def test_gunzip_illegal_eof():
54 text = html_to_unicode(
55 "charset=cp1252", gunzip((SAMPLEDIR / "unexpected-eof.gz").read_bytes())
56 )[1]
57 expected_text = (SAMPLEDIR / "unexpected-eof-output.txt").read_text(
58 encoding="utf-8"
59 )
60 assert len(text) == len(expected_text)
61 assert text == expected_text

Callers

nothing calls this directly

Calls 1

gunzipFunction · 0.90

Tested by

no test coverage detected