def testSeekBackwards(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        bz2f.read(500)
        bz2f.seek((- 150), 1)
        self.assertEqual(bz2f.read(), self.TEXT[(500 - 150):])
def testSeekBackwards(self):
    self.createTempFile()
    with BZ2File(self.filename) as bz2f:
        bz2f.read(500)
        bz2f.seek((- 150), 1)
        self.assertEqual(bz2f.read(), self.TEXT[(500 - 150):])