def testIterator(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        self.assertEqual(list(iter(bz2f)), self.TEXT_LINES)
def testIterator(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        self.assertEqual(list(iter(bz2f)), self.TEXT_LINES)