def testCompressEmptyString(self):
    bz2c = BZ2Compressor()
    data = bz2c.compress(b'')
    data += bz2c.flush()
    self.assertEqual(data, self.EMPTY_DATA)
def testCompressEmptyString(self):
    bz2c = BZ2Compressor()
    data = bz2c.compress(b)
    data += bz2c.flush()
    self.assertEqual(data, self.EMPTY_DATA)