def testSeekForward(self):
    'StringStream.seek(): forward'
    stream = antlr3.StringStream('foo\nbar')
    stream.seek(4)
    self.failUnlessEqual(stream.index(), 4)
    self.failUnlessEqual(stream.line, 2)
    self.failUnlessEqual(stream.charPositionInLine, 0)
    self.failUnlessEqual(stream.LA(1), 'b')
StringStream.seek(): forward
def testSeekForward(self):
    
    stream = antlr3.StringStream('foo\nbar')
    stream.seek(4)
    self.failUnlessEqual(stream.index(), 4)
    self.failUnlessEqual(stream.line, 2)
    self.failUnlessEqual(stream.charPositionInLine, 0)
    self.failUnlessEqual(stream.LA(1), 'b')