def METHOD_NAME(self, pyramid_config, pyramid_request):
    svc = mock.Mock(spec_set=feature_service_factory(None, pyramid_request))
    pyramid_config.register_service(svc, name="feature")
    return svc