mirror of https://github.com/nicolargo/glances.git
Correct Restful unitest for the previous commit
This commit is contained in:
parent
34a500e3ed
commit
f5d157a7cf
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Reference in New Issue