def testSeekBackwardsFromEnd(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        bz2f.seek((- 150), 2)
        self.assertEqual(bz2f.read(), self.TEXT[(len(self.TEXT) - 150):])
def testSeekBackwardsFromEnd(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        bz2f.seek((- 150), 2)
        self.assertEqual(bz2f.read(), self.TEXT[(len(self.TEXT) - 150):])