def testMark(self):
    'StringStream.mark()'
    stream = antlr3.StringStream('foo\nbar')
    stream.seek(4)
    marker = stream.mark()
    self.failUnlessEqual(marker, 1)
    self.failUnlessEqual(stream.markDepth, 1)
    stream.consume()
    marker = stream.mark()
    self.failUnlessEqual(marker, 2)
    self.failUnlessEqual(stream.markDepth, 2)
StringStream.mark()
def testMark(self):
    
    stream = antlr3.StringStream('foo\nbar')
    stream.seek(4)
    marker = stream.mark()
    self.failUnlessEqual(marker, 1)
    self.failUnlessEqual(stream.markDepth, 1)
    stream.consume()
    marker = stream.mark()
    self.failUnlessEqual(marker, 2)
    self.failUnlessEqual(stream.markDepth, 2)