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

Method _test_bz2_header

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

Source from the content-addressed store, hash-verified

1852 return fobj
1853
1854 def _test_bz2_header(self, compresslevel):
1855 fobj = self._compressed_tar(compresslevel)
1856 self.assertEqual(fobj.getvalue()[0:10],
1857 b"BZh%d1AY&SY" % compresslevel)
1858
1859 def _test_gz_header(self, compresslevel):
1860 fobj = self._compressed_tar(compresslevel)

Callers 2

Calls 3

_compressed_tarMethod · 0.95
assertEqualMethod · 0.45
getvalueMethod · 0.45

Tested by

no test coverage detected