summaryrefslogtreecommitdiff
path: root/wsme/tests/test_restxml.py
diff options
context:
space:
mode:
Diffstat (limited to 'wsme/tests/test_restxml.py')
-rw-r--r--wsme/tests/test_restxml.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/wsme/tests/test_restxml.py b/wsme/tests/test_restxml.py
index aab312b..6f1b090 100644
--- a/wsme/tests/test_restxml.py
+++ b/wsme/tests/test_restxml.py
@@ -57,7 +57,7 @@ def dumpxml(key, obj, datatype=None):
def loadxml(el, datatype):
- print (el, datatype, len(el))
+ print(el, datatype, len(el))
if el.get('nil') == 'true':
return None
if isinstance(datatype, list):
@@ -90,10 +90,10 @@ def loadxml(el, datatype):
for attr in datatype._wsme_attributes:
name = attr.name
child = el.find(name)
- print (name, attr, child)
+ print(name, attr, child)
if child is not None:
d[name] = loadxml(child, attr.datatype)
- print (d)
+ print(d)
return d
else:
if datatype == wsme.types.binary:
@@ -137,7 +137,7 @@ class TestRestXML(wsme.tests.protocol.RestOnlyProtocolTestCase):
content,
headers=headers,
expect_errors=True)
- print ("Received:", res.body)
+ print("Received:", res.body)
if _no_result_decode:
return res
@@ -167,7 +167,7 @@ class TestRestXML(wsme.tests.protocol.RestOnlyProtocolTestCase):
language, sample = wsme.rest.xml.encode_sample_value(
MyType, value, True)
- print (language, sample)
+ print(language, sample)
assert language == 'xml'
assert sample == b("""<value>