def testSetTokenSource(self):
    'CommonTokenStream.setTokenSource()'
    stream = antlr3.CommonTokenStream(None)
    stream.setTokenSource(self.source)
    self.failUnlessEqual(stream.index(), (- 1))
    self.failUnlessEqual(stream.channel, antlr3.DEFAULT_CHANNEL)
CommonTokenStream.setTokenSource()
def testSetTokenSource(self):
    
    stream = antlr3.CommonTokenStream(None)
    stream.setTokenSource(self.source)
    self.failUnlessEqual(stream.index(), (- 1))
    self.failUnlessEqual(stream.channel, antlr3.DEFAULT_CHANNEL)