def METHOD_NAME(self, pyramid_request, CheckmateClient, CheckmateService):
    svc = factory(sentinel.context, pyramid_request)
    CheckmateClient.assert_called_once_with(
        host=sentinel.url, api_key=sentinel.api_key
    )
    CheckmateService.assert_called_once_with(
        checkmate_client=CheckmateClient.return_value,
        allow_all=sentinel.allow_all,
        blocked_for=None,
        ignore_reasons=sentinel.ignore_reasons,
    )
    assert svc == CheckmateService.return_value