summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJurko Gospodnetić <jurko.gospodnetic@pke.hr>2014-07-01 21:51:49 (GMT)
committerJurko Gospodnetić <jurko.gospodnetic@pke.hr>2014-07-01 21:51:49 (GMT)
commit3580611a8c6cb4712a797f9dba68918ea27af555 (patch)
tree28f836cd8d7b650de435dbf786ba981b4593eebf
parent20a87b686244ae717df58d3bef62cb9123024cf9 (diff)
downloadsuds-jurko-3580611a8c6cb4712a797f9dba68918ea27af555.zip
suds-jurko-3580611a8c6cb4712a797f9dba68918ea27af555.tar.gz
suds-jurko-3580611a8c6cb4712a797f9dba68918ea27af555.tar.bz2
tidy up test WSDL (stylistic)
- indented some of the content to make it more readable - removed an unnecessary attributeFormDefault attribute
-rw-r--r--tests/testutils/__init__.py15
1 files changed, 7 insertions, 8 deletions
diff --git a/tests/testutils/__init__.py b/tests/testutils/__init__.py
index c716ab1..0062a90 100644
--- a/tests/testutils/__init__.py
+++ b/tests/testutils/__init__.py
@@ -159,15 +159,14 @@ def wsdl(schema_content, input=None, output=None, operation_name="f",
wsdl = ["""\
<?xml version='1.0' encoding='UTF-8'?>
<wsdl:definitions targetNamespace="%(wsdl_target_namespace)s"
-xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
-xmlns:my_wsdl="%(wsdl_target_namespace)s"
-xmlns:my_xsd="%(xsd_target_namespace)s"
-xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:my_wsdl="%(wsdl_target_namespace)s"
+ xmlns:my_xsd="%(xsd_target_namespace)s"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<wsdl:types>
<xsd:schema targetNamespace="%(xsd_target_namespace)s"
- elementFormDefault="qualified"
- attributeFormDefault="unqualified"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ elementFormDefault="qualified"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
%(schema_content)s
</xsd:schema>
</wsdl:types>""" % dict(schema_content=schema_content,
@@ -212,7 +211,7 @@ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
</wsdl:portType>
<wsdl:binding name="dummy" type="my_wsdl:dummyPortType">
<soap:binding style="document"
- transport="http://schemas.xmlsoap.org/soap/http" />
+ transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="%s">
<soap:operation soapAction="my-soap-action" style="document" />""" %
(operation_name,))