def testReadChunk10MultiStream(self):
    self.createTempFile(streams=5)
    with BZ2File(self.filename) as bz2f:
        text = b''
        while True:
            str = bz2f.read(10)
            if (not str):
                break
            text += str
        self.assertEqual(text, (self.TEXT * 5))
def testReadChunk10MultiStream(self):
    self.createTempFile(streams=5)
    with BZ2File(self.filename) as bz2f:
        text = b
        while True:
            str = bz2f.read(10)
            if (not str):
                break
            text += str
        self.assertEqual(text, (self.TEXT * 5))