From 80e61cf6356de74a53db71b638f8b2c9e0bb7247 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 28 Jan 2010 15:31:57 +0000 Subject: Binding python ID-WSF 2.0 tests: update some tests --- bindings/python/tests/idwsf2_tests.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bindings/python/tests') diff --git a/bindings/python/tests/idwsf2_tests.py b/bindings/python/tests/idwsf2_tests.py index 39ce9fde..82139324 100755 --- a/bindings/python/tests/idwsf2_tests.py +++ b/bindings/python/tests/idwsf2_tests.py @@ -166,8 +166,12 @@ class MetadataRegisterTestCase(IdWsf2TestCase): abstract = 'Personal Profile service' soapEndpoint = 'http://idp1/soapEndpoint' try: - wsp_disco.initMetadataRegister( - 'urn:liberty:id-sis-pp:2005-05', abstract, wsp.providerIds[0], soapEndpoint) + wsp_disco.initMetadataRegister() + wsp_disco.addSimpleServiceMetadata(service_types = + ['urn:liberty:id-sis-pp:2005-05'], abstract = abstract, + provider_id = wsp.providerIds[0], address = soapEndpoint) + self.failUnless(wsp_disco.request is not None) + self.failUnlessEqual(len(wsp_disco.metadatas), 1) except lasso.Error, e: self.fail(e) -- cgit