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

Method testCompressEmptyString

Lib/test/test_bz2.py:1054–1056  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1052 self.assertEqual(ext_decompress(data), self.TEXT)
1053
1054 def testCompressEmptyString(self):
1055 text = bz2.compress(b'')
1056 self.assertEqual(text, self.EMPTY_DATA)
1057
1058 def testDecompress(self):
1059 text = bz2.decompress(self.DATA)

Callers

nothing calls this directly

Calls 2

compressMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected