diff options
author | nicolargo <nicolashennion@gmail.com> | 2016-03-31 13:23:46 +0200 |
---|---|---|
committer | nicolargo <nicolashennion@gmail.com> | 2016-03-31 13:23:46 +0200 |
commit | f5d157a7cfef6110c18d59e2fb6920c5202bcfb5 (patch) | |
tree | 68e11bcc33925307f9761cd0c70d38f01ee50016 /unitest-restful.py | |
parent | 34a500e3ed2f65bc5bf9b105427bb98f544b7b32 (diff) |
Correct Restful unitest for the previous commit
Diffstat (limited to 'unitest-restful.py')
-rwxr-xr-x | unitest-restful.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/unitest-restful.py b/unitest-restful.py index aa4c2045..c68e3721 100755 --- a/unitest-restful.py +++ b/unitest-restful.py @@ -23,6 +23,7 @@ import shlex import subprocess import time +import numbers import unittest from glances import __version__ @@ -111,7 +112,8 @@ class TestGlances(unittest.TestCase): req = requests.get("%s/%s/%s" % (URL, method, i)) self.assertTrue(req.ok) self.assertIsInstance(req.json(), dict) - self.assertIsInstance(req.json()[i], float) + print req.json()[i] + self.assertIsInstance(req.json()[i], numbers.Number) def test_005_values(self): """Values.""" |