def testConsume(self):
    'CommonTokenStream.consume()'
    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)
    self.failUnlessEqual(stream.LA(1), 12)
    stream.consume()
    self.failUnlessEqual(stream.LA(1), 13)
    stream.consume()
    self.failUnlessEqual(stream.LA(1), antlr3.EOF)
    stream.consume()
    self.failUnlessEqual(stream.LA(1), antlr3.EOF)
CommonTokenStream.consume()
def testConsume(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)
    self.failUnlessEqual(stream.LA(1), 12)
    stream.consume()
    self.failUnlessEqual(stream.LA(1), 13)
    stream.consume()
    self.failUnlessEqual(stream.LA(1), antlr3.EOF)
    stream.consume()
    self.failUnlessEqual(stream.LA(1), antlr3.EOF)