def METHOD_NAME(self, log_string, log_level):
    """
    Asserts that the logger was not called with the given
    log_level and with a regex of the given string.
    """
    with pytest.raises(AssertionError):
        with self.assert_logged(log_string, log_level=log_level):
            yield