Correct unitest Restfull JSON to be Python compatible

This commit is contained in:
nicolargo 2016-06-04 19:31:25 +02:00
parent 53b8095bd3
commit 5065ef12e0

View File

@ -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):