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): ...@@ -61,7 +61,11 @@ class DummyLogger(object):
def deunicodeData(data): 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 = [] new_data = []
for sub_data in data: for sub_data in data:
new_data.append(deunicodeData(sub_data)) new_data.append(deunicodeData(sub_data))
...@@ -73,10 +77,7 @@ def deunicodeData(data): ...@@ -73,10 +77,7 @@ def deunicodeData(data):
key = deunicodeData(key) key = deunicodeData(key)
value = deunicodeData(value) value = deunicodeData(value)
new_data[key] = value new_data[key] = value
elif isinstance(data, int): else new_data = data
new_data = data
elif isinstance(data, str):
new_data = str(data)
return new_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