Commit 1e149a26 authored by Benjamin Blanc's avatar Benjamin Blanc

Test getFooFoo for test_suite_portal in testnode

parent 6db1ff31
......@@ -61,7 +61,11 @@ class DummyLogger(object):
def deunicodeData(data):
if isinstance(data, list):
if isinstance(data, int):
new_data = data
elif isinstance(data, str):
new_data = data
elif isinstance(data, list):
new_data = []
for sub_data in data:
new_data.append(deunicodeData(sub_data))
......@@ -73,10 +77,7 @@ def deunicodeData(data):
key = deunicodeData(key)
value = deunicodeData(value)
new_data[key] = value
elif isinstance(data, int):
new_data = data
elif isinstance(data, str):
new_data = str(data)
else new_data = data
return new_data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment