def METHOD_NAME(self, mocked_get_user_lookup_cache):
    """test that no sensitive data got logged"""
    global mocked_context
    # ------------------------------------------------------------------ --
    # set up the required mocks for
    # - user_cache and
    # - request_context
    mocked_context["UserLookup"] = {}
    # build the dummy cache
    user_lookup_cache = UserLookupCache()
    user_lookup_cache.cache_return_value = (
        user_info["username"],
        user_info["userid"],
        user_info,
    )
    mocked_get_user_lookup_cache.return_value = user_lookup_cache
    # ------------------------------------------------------------------ --
    # first test - feed user data in cache
    lookup_user_in_resolver(
        login="hugo",
        user_id="123456",
        resolver_spec="linotp.passwdresolver.mypass",
        user_info=user_info,
    )
    # verify that no sensitiv data is in all the logged data
    for log_data in mocked_logging.log_data:
        assert user_info["password"] not in log_data
    # reset logging data
    mocked_logging.log_data = []
    # ------------------------------------------------------------------ --
    # 2. test - retrieve data from request cache
    lookup_user_in_resolver(
        login="hugo",
        user_id="123456",
        resolver_spec="linotp.passwdresolver.mypass",
        user_info=user_info,
    )
    # verify that no sensitiv data is in all the logged data
    for log_data in mocked_logging.log_data:
        assert user_info["password"] not in log_data
    # reset logging data
    mocked_logging.log_data = []
    # ------------------------------------------------------------------ --
    # 3. test - no cache is enabled and no data in the request local cache
    mocked_get_user_lookup_cache.return_value = None
    mocked_context["UserLookup"] = {}
    lookup_user_in_resolver(
        login="hugo",
        user_id="123456",
        resolver_spec="linotp.passwdresolver.mypass",
        user_info=user_info,
    )
    # verify that no sensitiv data is in all the logged data
    for log_data in mocked_logging.log_data:
        assert user_info["password"] not in log_data
    # reset logging data
    mocked_logging.log_data = []
    # ------------------------------------------------------------------ --
    # 4. test - no cache is enabled and no data in the request local cache
    #           so we end up calling the resolver
    mocked_get_user_lookup_cache.return_value = None
    mocked_context["UserLookup"] = {}
    lookup_user_in_resolver(
        login="hugo",
        user_id=None,
        resolver_spec="linotp.passwdresolver.mypass",
        user_info=None,
    )
    # verify that no sensitiv data is in all the logged data
    for log_data in mocked_logging.log_data:
        assert user_info["password"] not in log_data
    # reset logging data
    mocked_logging.log_data = []
    lookup_user_in_resolver(
        login=None,
        user_id="123456",
        resolver_spec="linotp.passwdresolver.mypass",
        user_info=None,
    )
    # verify that no sensitiv data is in all the logged data
    for log_data in mocked_logging.log_data:
        assert user_info["password"] not in log_data
    return