def get_instance_link(index_instance_node, text=None, simple=False):

    if simple:
        # Just display the instance's value or overrided text, no
        # HTML anchor
        template = '%(value)s'
    else:
        template = '<a href="%(url)s">%(value)s</a>'

    return template % {
        'url': index_instance_node.get_absolute_url(),
        'value': text if text else (
            index_instance_node if index_instance_node.parent else index_instance_node.index_template_node.index
        )
    }
Test the precense of three consecutive system.* methods.
dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/document_indexing/widgets.py/get_instance_link--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/test/test_docxmlrpc.py/DocXMLRPCHTTPGETServer.test_system_methods