def METHOD_NAME(test):
    @functools.wraps(test)
    def wrapper(self, *args, **kwargs):
        with warnings.catch_warnings():
            warnings.simplefilter('ignore', category=category)
            return test(self, *args, **kwargs)
    return wrapper