MCPcopy Index your code
hub / github.com/RustPython/RustPython / _test_gz_header

Method _test_gz_header

Lib/test/test_tarfile.py:1842–1844  ·  view source on GitHub ↗
(self, compresslevel)

Source from the content-addressed store, hash-verified

1840 b"BZh%d1AY&SY" % compresslevel)
1841
1842 def _test_gz_header(self, compresslevel):
1843 fobj = self._compressed_tar(compresslevel)
1844 self.assertEqual(fobj.getvalue()[:3], b"\x1f\x8b\x08")
1845
1846class Bz2CompressWriteTest(Bz2Test, _CompressedWriteTest, unittest.TestCase):
1847 prefix = "w:"

Callers 2

Calls 3

_compressed_tarMethod · 0.95
assertEqualMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected