def testRead100(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        self.assertEqual(bz2f.read(100), self.TEXT[:100])
def testRead100(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        self.assertEqual(bz2f.read(100), self.TEXT[:100])