MCPcopy Index your code
hub / github.com/python/cpython / _test_gz_header

Method _test_gz_header

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

Source from the content-addressed store, hash-verified

1857 b"BZh%d1AY&SY" % compresslevel)
1858
1859 def _test_gz_header(self, compresslevel):
1860 fobj = self._compressed_tar(compresslevel)
1861 self.assertEqual(fobj.getvalue()[:3], b"\x1f\x8b\x08")
1862
1863class Bz2CompressWriteTest(Bz2Test, _CompressedWriteTest, unittest.TestCase):
1864 prefix = "w:"

Callers 2

Calls 3

_compressed_tarMethod · 0.95
assertEqualMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected