def testMarkRewind(self):
    'CommonTokenStream.mark()/rewind()'
    self.source.tokens.append(antlr3.CommonToken(type=12))
    self.source.tokens.append(antlr3.CommonToken(type=13))
    self.source.tokens.append(antlr3.CommonToken(type=antlr3.EOF))
    stream = antlr3.CommonTokenStream(self.source)
    stream.fillBuffer()
    stream.consume()
    marker = stream.mark()
    stream.consume()
    stream.rewind(marker)
    self.failUnlessEqual(stream.LA(1), 13)
CommonTokenStream.mark()/rewind()
def testMarkRewind(self):
    
    self.source.tokens.append(antlr3.CommonToken(type=12))
    self.source.tokens.append(antlr3.CommonToken(type=13))
    self.source.tokens.append(antlr3.CommonToken(type=antlr3.EOF))
    stream = antlr3.CommonTokenStream(self.source)
    stream.fillBuffer()
    stream.consume()
    marker = stream.mark()
    stream.consume()
    stream.rewind(marker)
    self.failUnlessEqual(stream.LA(1), 13)