'Make sure indirect recursion is caught.'

def test_indirect_recursion(self):

    boo = DocumentFactory(title='Boo')
    yah = DocumentFactory(title='Yah')
    ApprovedRevisionFactory(document=boo, content='Paper    [[Include:Yah]]    Cups')
    ApprovedRevisionFactory(document=yah, content='Wooden    [[Include:Boo]]    Bats')
    recursion_message = (RECURSION_MESSAGE % 'Boo')
    eq_(('Paper    Wooden    %s    Bats    Cups' % recursion_message), re.sub('</?p>|\\n', '', boo.content_parsed))
