def testSeekBackwardsBytesIO(self):
    with BytesIO(self.DATA) as bio:
        with BZ2File(bio) as bz2f:
            bz2f.read(500)
            bz2f.seek((- 150), 1)
            self.assertEqual(bz2f.read(), self.TEXT[(500 - 150):])
def testSeekBackwardsBytesIO(self):
    with BytesIO(self.DATA) as bio:
        with BZ2File(bio) as bz2f:
            bz2f.read(500)
            bz2f.seek((- 150), 1)
            self.assertEqual(bz2f.read(), self.TEXT[(500 - 150):])