def testDecompressUnusedData(self):
    bz2d = BZ2Decompressor()
    unused_data = b'this is unused data'
    text = bz2d.decompress((self.DATA + unused_data))
    self.assertEqual(text, self.TEXT)
    self.assertEqual(bz2d.unused_data, unused_data)
def testDecompressUnusedData(self):
    bz2d = BZ2Decompressor()
    unused_data = b'this is unused data'
    text = bz2d.decompress((self.DATA + unused_data))
    self.assertEqual(text, self.TEXT)
    self.assertEqual(bz2d.unused_data, unused_data)