diff options
author | Nicolargo <nicolas@nicolargo.com> | 2015-09-24 10:15:08 +0200 |
---|---|---|
committer | Nicolargo <nicolas@nicolargo.com> | 2015-09-24 10:15:08 +0200 |
commit | 2bc0d427367839a97406514d71261ab216131c67 (patch) | |
tree | beb8765d54ebeb83dc38d9ef2f83acc2ead99142 /unitest-restful.py | |
parent | 0127aa734f6e65b2ba033397b127e22230130264 (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-x | unitest-restful.py | 2 |
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) |