'Make sure indirect recursion is caught.'

def test_indirect_recursion(self):

    boo = TemplateDocumentFactory(title=(TEMPLATE_TITLE_PREFIX + 'Boo'))
    yah = TemplateDocumentFactory(title=(TEMPLATE_TITLE_PREFIX + 'Yah'))
    ApprovedRevisionFactory(document=boo, content='Paper    [[{}Yah]]    Cups'.format(TEMPLATE_TITLE_PREFIX))
    ApprovedRevisionFactory(document=yah, content='Wooden    [[{}Boo]]    Bats'.format(TEMPLATE_TITLE_PREFIX))
    recursion_message = (RECURSION_MESSAGE % (TEMPLATE_TITLE_PREFIX + 'Boo'))
    eq_(('<p>Paper    Wooden    %s    Bats\n    Cups\n</p>' % recursion_message), boo.content_parsed)
