def testReadTrailingJunk(self):
    self.createTempFile(suffix=self.BAD_DATA)
    with BZ2File(self.filename) as bz2f:
        self.assertEqual(bz2f.read(), self.TEXT)
def testReadTrailingJunk(self):
    self.createTempFile(suffix=self.BAD_DATA)
    with BZ2File(self.filename) as bz2f:
        self.assertEqual(bz2f.read(), self.TEXT)