Permalink
Browse files

Fixed a couple of tests

git-svn-id: https://pywebsvcs.svn.sourceforge.net/svnroot/pywebsvcs/trunk@1485 7150bf37-e60d-0410-b93f-83e91ef0e581
  • Loading branch information...
1 parent c65296e commit 305e95e8f9405f72b4159559459c5f774a10a0ba lclement committed Apr 2, 2009
@@ -75,7 +75,9 @@ test_NoMessagePart = servers/NoMessagePartServer.py
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
@@ -42,7 +42,9 @@ def all():
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 @@ def test_net_ItemSearch(self):
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
@@ -59,8 +59,8 @@ def test_net_threatLevel(self):
msg = self.client_module.threatLevelRequest()
rsp = port.threatLevel(msg)
for item in rsp.ThreatLevelReturn.Item:
- item.Key
- item.Value
+ item['key']
+ item['value']

0 comments on commit 305e95e

Please sign in to comment.