def testSeekBackwardsAcrossStreams(self):
    self.createTempFile(streams=2)
    with BZ2File(self.filename) as bz2f:
        readto = (len(self.TEXT) + 100)
        while (readto > 0):
            readto -= len(bz2f.read(readto))
        bz2f.seek((- 150), 1)
        self.assertEqual(bz2f.read(), (self.TEXT[(100 - 150):] + self.TEXT))
def testSeekBackwardsAcrossStreams(self):
    self.createTempFile(streams=2)
    with BZ2File(self.filename) as bz2f:
        readto = (len(self.TEXT) + 100)
        while (readto > 0):
            readto -= len(bz2f.read(readto))
        bz2f.seek((- 150), 1)
        self.assertEqual(bz2f.read(), (self.TEXT[(100 - 150):] + self.TEXT))