'Asserts that warning was logged when request.user
was not equal to user at response'

@contextmanager
def assert_logged_for_request_user_mismatch(self, user_at_request, user_at_response, log_level):

    with self.assert_logged_with_message("SafeCookieData    user    at    request    '{}'    does    not    match    user    at    response:    '{}'".format(user_at_request, user_at_response), log_level=log_level):
        (yield)
