def testSeekForwardAcrossStreams(self):
    self.createTempFile(streams=2)
    with BZ2File(self.filename) as bz2f:
        self.assertRaises(TypeError, bz2f.seek)
        bz2f.seek((len(self.TEXT) + 150))
        self.assertEqual(bz2f.read(), self.TEXT[150:])
def testSeekForwardAcrossStreams(self):
    self.createTempFile(streams=2)
    with BZ2File(self.filename) as bz2f:
        self.assertRaises(TypeError, bz2f.seek)
        bz2f.seek((len(self.TEXT) + 150))
        self.assertEqual(bz2f.read(), self.TEXT[150:])