fix json unicode issue in manager

This commit is contained in:
clowwindy
2015-08-10 00:05:22 +08:00
parent c5dd081216
commit 3c1154923f
2 changed files with 7 additions and 3 deletions

View File

@ -258,7 +258,7 @@ def test():
data = common.to_str(data)
assert data.startswith('stat: ')
data = data.split('stat:')[1]
stats = json.loads(data)
stats = shell.parse_json_in_str(data)
assert '7001' in stats
logging.info('TCP statistics test passed')