def named_test(name):
    """ Decorator that applies a name to an Apollo test case. """

    # Create a simple decorator that applies the relevant name.
    def decorator(func):
        func.__name__ = name
        return func

    return decorator