Return the id of the given test, formatted as expected by nose.
    :param test: a nose.case.Test instance
    :return:

def get_id(test):
    """
    Return the id of the given test, formatted as expected by nose.
    :param test: a nose.case.Test instance
    :return:
    """
    test_id = test.id()
    module_length = len(test.test.__module__)
    return test_id[:module_length] + ":" + test_id[module_length + 1:]