def setupProvider(child_provider, top_resource, tls=False, ctx_factory=None, allowed_hosts=None): soap_resource = soapresource.setupSOAPResource(top_resource, 'CS2', allowed_hosts=allowed_hosts) provider_client = providerclient.ProviderClient(ctx_factory) nsi2_provider = provider.Provider(child_provider, provider_client) providerservice.ProviderService(soap_resource, nsi2_provider) return nsi2_provider
def testSoapProvider(self): prov = provider.Provider(None, None) verifyObject(INSIRequester, prov)