def METHOD_NAME(func):
    def new_func(*args, **kwargs):
        with assert_raises(exception, glob=glob, regex=regex, match_case=match_case):
            return func(*args, **kwargs)
    return tools.make_decorator(func)(new_func)