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

Method testDecompressChunks10

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

Source from the content-addressed store, hash-verified

881 self.assertEqual(text, self.TEXT)
882
883 def testDecompressChunks10(self):
884 bz2d = BZ2Decompressor()
885 text = b''
886 n = 0
887 while True:
888 str = self.DATA[n*10:(n+1)*10]
889 if not str:
890 break
891 text += bz2d.decompress(str)
892 n += 1
893 self.assertEqual(text, self.TEXT)
894
895 def testDecompressUnusedData(self):
896 bz2d = BZ2Decompressor()

Callers

nothing calls this directly

Calls 3

decompressMethod · 0.95
BZ2DecompressorClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected