summaryrefslogtreecommitdiffstats
path: root/unitest-restful.py
diff options
context:
space:
mode:
authorNicolargo <nicolas@nicolargo.com>2015-09-24 10:15:08 +0200
committerNicolargo <nicolas@nicolargo.com>2015-09-24 10:15:08 +0200
commit2bc0d427367839a97406514d71261ab216131c67 (patch)
treebeb8765d54ebeb83dc38d9ef2f83acc2ead99142 /unitest-restful.py
parent0127aa734f6e65b2ba033397b127e22230130264 (diff)
Correct an issue with test_003_plugins in Unitest for the Restful API (str instead od unicode)
Diffstat (limited to 'unitest-restful.py')
-rwxr-xr-xunitest-restful.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/unitest-restful.py b/unitest-restful.py
index cfb86f50..aebde904 100755
--- a/unitest-restful.py
+++ b/unitest-restful.py
@@ -91,7 +91,7 @@ class TestGlances(unittest.TestCase):
req = requests.get("%s/%s" % (URL, p))
self.assertTrue(req.ok)
if p in ('uptime', 'now'):
- self.assertIsInstance(req.json(), str)
+ self.assertIsInstance(req.json(), unicode)
elif p in ('fs', 'monitor', 'percpu', 'sensors', 'alert', 'processlist',
'diskio', 'hddtemp', 'batpercent', 'network'):
self.assertIsInstance(req.json(), list)