def METHOD_NAME(
    self, pyramid_request, SignedCookieProfile, AuthCookieService, user_service
):
    pyramid_request.registry.settings[
        "h_auth_cookie_secret"
    ] = sentinel.cookie_secret
    cookie_service = factory(sentinel.context, pyramid_request)
    SignedCookieProfile.assert_called_once_with(
        secret=pyramid_request.registry.settings["h_auth_cookie_secret"],
        salt="authsanity",
        cookie_name="auth",
        secure=False,
        max_age=2592000,
        httponly=True,
    )
    SignedCookieProfile.return_value.bind.assert_called_once_with(pyramid_request)
    AuthCookieService.assert_called_once_with(
        pyramid_request.db,
        user_service=user_service,
        cookie=SignedCookieProfile.return_value.bind.return_value,
    )
    assert cookie_service == AuthCookieService.return_value