def testDecompressChunks10(self):
    bz2d = BZ2Decompressor()
    text = b''
    n = 0
    while True:
        str = self.DATA[(n * 10):((n + 1) * 10)]
        if (not str):
            break
        text += bz2d.decompress(str)
        n += 1
    self.assertEqual(text, self.TEXT)
def testDecompressChunks10(self):
    bz2d = BZ2Decompressor()
    text = b
    n = 0
    while True:
        str = self.DATA[(n * 10):((n + 1) * 10)]
        if (not str):
            break
        text += bz2d.decompress(str)
        n += 1
    self.assertEqual(text, self.TEXT)