def testDecompress(self):
    bz2d = BZ2Decompressor()
    self.assertRaises(TypeError, bz2d.decompress)
    text = bz2d.decompress(self.DATA)
    self.assertEqual(text, self.TEXT)
def testDecompress(self):
    bz2d = BZ2Decompressor()
    self.assertRaises(TypeError, bz2d.decompress)
    text = bz2d.decompress(self.DATA)
    self.assertEqual(text, self.TEXT)