def testReadLines(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        self.assertRaises(TypeError, bz2f.readlines, None)
        self.assertEqual(bz2f.readlines(), self.TEXT_LINES)
def testReadLines(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        self.assertRaises(TypeError, bz2f.readlines, None)
        self.assertEqual(bz2f.readlines(), self.TEXT_LINES)