mirror of
https://github.com/nicolargo/glances.git
synced 2024-11-28 05:42:57 +03:00
Correct unitest Restfull JSON to be Python compatible
This commit is contained in:
parent
53b8095bd3
commit
5065ef12e0
@ -112,7 +112,7 @@ class TestGlances(unittest.TestCase):
|
||||
req = requests.get("%s/%s/%s" % (URL, method, i))
|
||||
self.assertTrue(req.ok)
|
||||
self.assertIsInstance(req.json(), dict)
|
||||
print req.json()[i]
|
||||
print(req.json()[i])
|
||||
self.assertIsInstance(req.json()[i], numbers.Number)
|
||||
|
||||
def test_005_values(self):
|
||||
|
Loading…
Reference in New Issue
Block a user