From: <lcl...@us...> - 2009-04-02 01:08:12
|
Revision: 1485 http://pywebsvcs.svn.sourceforge.net/pywebsvcs/?rev=1485&view=rev Author: lclement Date: 2009-04-02 01:08:10 +0000 (Thu, 02 Apr 2009) Log Message: ----------- Fixed a couple of tests Modified Paths: -------------- trunk/zsi/test/wsdl2py/config.txt trunk/zsi/test/wsdl2py/test_AWSECommerceService.py trunk/zsi/test/wsdl2py/test_ThreatService.py Modified: trunk/zsi/test/wsdl2py/config.txt =================================================================== --- trunk/zsi/test/wsdl2py/config.txt 2009-03-31 22:10:10 UTC (rev 1484) +++ trunk/zsi/test/wsdl2py/config.txt 2009-04-02 01:08:10 UTC (rev 1485) @@ -75,7 +75,9 @@ document = False literal = False broke = False -tests = test_XMethodsQuery test_ThreatService +tests = test_ThreatService +#XMethods web site is broken wsdl can not be retreived +#tests = test_XMethodsQuery test_ThreatService [rpc_encoded_broke] document = False Modified: trunk/zsi/test/wsdl2py/test_AWSECommerceService.py =================================================================== --- trunk/zsi/test/wsdl2py/test_AWSECommerceService.py 2009-03-31 22:10:10 UTC (rev 1484) +++ trunk/zsi/test/wsdl2py/test_AWSECommerceService.py 2009-04-02 01:08:10 UTC (rev 1485) @@ -42,8 +42,10 @@ return suite -TargetNamespace = 'http://webservices.amazon.com/AWSECommerceService/2007-10-29' +#TargetNamespace = 'http://webservices.amazon.com/AWSECommerceService/2007-10-29' +TargetNamespace = 'http://webservices.amazon.com/AWSECommerceService/2009-02-01' + class AmazonTestCase(ServiceTestCase): """Test case for Amazon ECommerce Web service """ @@ -117,12 +119,12 @@ response.OperationRequest.Arguments for i in response.OperationRequest.Arguments.Argument: - i.get_attribute_Name() - i.get_attribute_Value() - - for i in response.OperationRequest.HTTPHeaders.Header or []: - i.get_attribute_Name() - i.get_attribute_Value() + i.get_attribute_Name() + i.get_attribute_Value() + if response.OperationRequest.HTTPHeaders: + for i in response.OperationRequest.HTTPHeaders.Header or []: + i.get_attribute_Name() + i.get_attribute_Value() response.OperationRequest.RequestId response.OperationRequest.RequestProcessingTime Modified: trunk/zsi/test/wsdl2py/test_ThreatService.py =================================================================== --- trunk/zsi/test/wsdl2py/test_ThreatService.py 2009-03-31 22:10:10 UTC (rev 1484) +++ trunk/zsi/test/wsdl2py/test_ThreatService.py 2009-04-02 01:08:10 UTC (rev 1485) @@ -59,8 +59,8 @@ msg = self.client_module.threatLevelRequest() rsp = port.threatLevel(msg) for item in rsp.ThreatLevelReturn.Item: - item.Key - item.Value + item['key'] + item['value'] This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |