def testLBBeyondBegin(self):
    'CommonTokenStream.LB(-1): beyond begin'
    self.source.tokens.append(antlr3.CommonToken(type=12))
    self.source.tokens.append(antlr3.CommonToken(type=12, channel=antlr3.HIDDEN_CHANNEL))
    self.source.tokens.append(antlr3.CommonToken(type=12, channel=antlr3.HIDDEN_CHANNEL))
    self.source.tokens.append(antlr3.CommonToken(type=13))
    stream = antlr3.CommonTokenStream(self.source)
    self.failUnless((stream.LB(1) is None))
    stream.consume()
    stream.consume()
    self.failUnless((stream.LB(3) is None))
CommonTokenStream.LB(-1): beyond begin
def testLBBeyondBegin(self):
    
    self.source.tokens.append(antlr3.CommonToken(type=12))
    self.source.tokens.append(antlr3.CommonToken(type=12, channel=antlr3.HIDDEN_CHANNEL))
    self.source.tokens.append(antlr3.CommonToken(type=12, channel=antlr3.HIDDEN_CHANNEL))
    self.source.tokens.append(antlr3.CommonToken(type=13))
    stream = antlr3.CommonTokenStream(self.source)
    self.failUnless((stream.LB(1) is None))
    stream.consume()
    stream.consume()
    self.failUnless((stream.LB(3) is None))