def testReleaseNested(self):
    'StringStream.release(): nested'
    stream = antlr3.StringStream('foo\nbar')
    stream.seek(4)
    marker1 = stream.mark()
    stream.consume()
    marker2 = stream.mark()
    stream.consume()
    marker3 = stream.mark()
    stream.release(marker2)
    self.failUnlessEqual(stream.markDepth, 1)
StringStream.release(): nested
def testReleaseNested(self):
    
    stream = antlr3.StringStream('foo\nbar')
    stream.seek(4)
    marker1 = stream.mark()
    stream.consume()
    marker2 = stream.mark()
    stream.consume()
    marker3 = stream.mark()
    stream.release(marker2)
    self.failUnlessEqual(stream.markDepth, 1)