def testFillBuffer(self):
    'CommonTokenStream.fillBuffer()'
    self.source.tokens.append(antlr3.CommonToken(type=12))
    self.source.tokens.append(antlr3.CommonToken(type=13))
    self.source.tokens.append(antlr3.CommonToken(type=14))
    self.source.tokens.append(antlr3.CommonToken(type=antlr3.EOF))
    stream = antlr3.CommonTokenStream(self.source)
    stream.fillBuffer()
    self.failUnlessEqual(len(stream.tokens), 3)
    self.failUnlessEqual(stream.tokens[0].type, 12)
    self.failUnlessEqual(stream.tokens[1].type, 13)
    self.failUnlessEqual(stream.tokens[2].type, 14)
CommonTokenStream.fillBuffer()
def testFillBuffer(self):
    
    self.source.tokens.append(antlr3.CommonToken(type=12))
    self.source.tokens.append(antlr3.CommonToken(type=13))
    self.source.tokens.append(antlr3.CommonToken(type=14))
    self.source.tokens.append(antlr3.CommonToken(type=antlr3.EOF))
    stream = antlr3.CommonTokenStream(self.source)
    stream.fillBuffer()
    self.failUnlessEqual(len(stream.tokens), 3)
    self.failUnlessEqual(stream.tokens[0].type, 12)
    self.failUnlessEqual(stream.tokens[1].type, 13)
    self.failUnlessEqual(stream.tokens[2].type, 14)