def testLT2BeyondEnd(self):
    'CommonTokenStream.LT(2): beyond end'
    self.source.tokens.append(antlr3.CommonToken(type=12))
    self.source.tokens.append(antlr3.CommonToken(type=13, channel=antlr3.HIDDEN_CHANNEL))
    stream = antlr3.CommonTokenStream(self.source)
    lt1 = stream.LT(2)
    self.failUnlessEqual(lt1.type, antlr3.EOF)
CommonTokenStream.LT(2): beyond end
def testLT2BeyondEnd(self):
    
    self.source.tokens.append(antlr3.CommonToken(type=12))
    self.source.tokens.append(antlr3.CommonToken(type=13, channel=antlr3.HIDDEN_CHANNEL))
    stream = antlr3.CommonTokenStream(self.source)
    lt1 = stream.LT(2)
    self.failUnlessEqual(lt1.type, antlr3.EOF)