Returns the stack trace to hash to identify a call descriptor

    :param str method_name: The calling method.

    :rtype str:

def get_stack(method_name):
    """
    Returns the stack trace to hash to identify a call descriptor

    :param str method_name: The calling method.

    :rtype str:
    """
    global test_suite
    trace_string      = method_name + " "
    for f in inspect.stack():
        module_name = os.path.basename(f[1])
        method_name = f[3]
        trace_string = trace_string + "%s %s " % (module_name, method_name)
        if test_suite and module_name == test_suite or (module_name == 'patch.py' and method_name == 'patched_test'):
            return trace_string
    return trace_string