def testReset(self):
    'StringStream.reset()'
    stream = antlr3.StringStream('foo')
    stream.consume()
    stream.consume()
    stream.reset()
    self.failUnlessEqual(stream.index(), 0)
    self.failUnlessEqual(stream.line, 1)
    self.failUnlessEqual(stream.charPositionInLine, 0)
    self.failUnlessEqual(stream.LA(1), 'f')
StringStream.reset()
def testReset(self):
    
    stream = antlr3.StringStream('foo')
    stream.consume()
    stream.consume()
    stream.reset()
    self.failUnlessEqual(stream.index(), 0)
    self.failUnlessEqual(stream.line, 1)
    self.failUnlessEqual(stream.charPositionInLine, 0)
    self.failUnlessEqual(stream.LA(1), 'f')