def METHOD_NAME(pyramid_config, pyramid_request):
    service = mock.create_autospec(UserDeleteService, instance=True, spec_set=True)
    service.return_value.request = pyramid_request
    pyramid_config.register_service(service, name="user_delete")
    return service