Lines Matching refs:decompress
28 def decompress(self, data): member in BaseTest
38 ret = bz2.decompress(data)
43 def decompress(self, data): member in BaseTest
44 return bz2.decompress(data)
162 self.assertEqual(self.decompress(f.read()), self.TEXT)
175 self.assertEqual(self.decompress(f.read()), self.TEXT)
186 self.assertEqual(self.decompress(f.read()), self.TEXT)
347 self.assertEqual(self.decompress(data), self.TEXT)
368 self.assertEqual(self.decompress(data), self.TEXT)
376 text = self.decompress(data)
388 self.assertRaises(TypeError, bz2d.decompress)
389 text = bz2d.decompress(self.DATA)
401 text += bz2d.decompress(str)
409 text = bz2d.decompress(self.DATA+unused_data)
416 text = bz2d.decompress(self.DATA)
417 self.assertRaises(EOFError, bz2d.decompress, "anything")
418 self.assertRaises(EOFError, bz2d.decompress, "")
426 text = bz2.BZ2Decompressor().decompress(compressed)
437 self.assertEqual(self.decompress(data), self.TEXT)
446 text = bz2.decompress(self.DATA)
451 text = bz2.decompress("")
456 text = bz2.decompress(self.EMPTY_DATA)
461 self.assertRaises(ValueError, bz2.decompress, self.DATA[:-10])
468 text = self.decompress(data)
478 text = bz2.decompress(compressed)