From cbe4155518c58b904ff1a0966f9faadfca0922f5 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Thu, 28 Jan 2010 15:32:12 +0000 Subject: Bindings python ID-WSF 1.0 tests: update PP HREF symbol --- bindings/python/tests/idwsf1_tests.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'bindings/python/tests') diff --git a/bindings/python/tests/idwsf1_tests.py b/bindings/python/tests/idwsf1_tests.py index 03deb481..348b3dde 100755 --- a/bindings/python/tests/idwsf1_tests.py +++ b/bindings/python/tests/idwsf1_tests.py @@ -92,7 +92,7 @@ class IdWsf1TestCase(unittest.TestCase): "http://idp/pp/soapEndpoint", "Discovery SOAP Endpoint description"); pp_service_instance = lasso.DiscoServiceInstance( - lasso.PP_HREF, + lasso.PP10_HREF, "http://idp/providerId", pp_description); idp.addService(pp_service_instance); @@ -123,7 +123,7 @@ class IdWsf1TestCase(unittest.TestCase): def get_resource_offering(self, soap_end_point='http://idp/pp/soapEndpoint'): service_instance = lasso.DiscoServiceInstance( - lasso.PP_HREF, + lasso.PP10_HREF, self.idp.providerId, lasso.DiscoDescription_newWithBriefSoapHttpDescription( lasso.SECURITY_MECH_NULL, @@ -145,7 +145,7 @@ class IdWsf1TestCase(unittest.TestCase): wsc_disco = lasso.Discovery(self.wsc) wsc_disco.setSessionFromDump(sp_session_dump) wsc_disco.initQuery() - wsc_disco.addRequestedServiceType(lasso.PP_HREF) + wsc_disco.addRequestedServiceType(lasso.PP10_HREF) wsc_disco.buildRequestMsg() # Process query @@ -247,7 +247,7 @@ class DataServiceQueryTestCase(IdWsf1TestCase): def test01(self): '''Test a data service query''' wsc_service = self.get_pp_service() - wsc_service.initQuery('/pp:PP/pp:InformalName', 'name') + wsc_service.initQuery('/pp10:PP/pp10:InformalName', 'name') wsc_service.buildSoapRequestMsg() self.failUnless(lasso.getRequestTypeFromSoapMsg(wsc_service.msgBody) == lasso.REQUEST_TYPE_DST_QUERY) @@ -271,7 +271,7 @@ class DataServiceModifyTestCase(IdWsf1TestCase): def test01(self): '''Test a data service modify''' - xpath = '/pp:PP/pp:InformalName' + xpath = '/pp10:PP/pp10:InformalName' old_data = ''' Damien @@ -279,7 +279,7 @@ class DataServiceModifyTestCase(IdWsf1TestCase): new_data = 'Alain' new_full_data = ''' - Alain + Alain ''' wsc_service = self.get_pp_service() @@ -296,8 +296,8 @@ class DataServiceModifyTestCase(IdWsf1TestCase): item = wsp_service.request.modification[0] self.failUnless(item.newData.any[0] == - 'Alain') - self.failUnless(item.select == '/pp:PP/pp:InformalName') + 'Alain') + self.failUnless(item.select == '/pp10:PP/pp10:InformalName') wsp_service.resourceData = old_data wsp_service.validateRequest() @@ -311,7 +311,7 @@ class DataServiceModifyTestCase(IdWsf1TestCase): def test02(self): '''Test a data service modify - root element''' - xpath = '/pp:PP' + xpath = '/pp10:PP' old_data = ''' Damien -- cgit