summaryrefslogtreecommitdiffstats
path: root/newton/newton/samples
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-08-31 12:03:23 -0500
committerVictor Morales <victor.morales@intel.com>2017-08-31 17:33:20 -0500
commitbbd8fafbf83c374c70308c17f10228221068d254 (patch)
tree0ea7c559665ff06a591959eefc10bcd7cb7410f3 /newton/newton/samples
parentbbc1222bc0044a813bec83572a1acebcc459d5e0 (diff)
Add Python 3.5 support
Python 2.7 will be supported until 2020[1]. This changes helps to prepares the transition to the transition to Python 3.x and those systems which not support other versions. [1] https://hg.python.org/peps/rev/76d43e52d978 Change-Id: Ic2847e907e29d565c89b0448135393f923de20e3 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: MULTICLOUD-83
Diffstat (limited to 'newton/newton/samples')
-rw-r--r--newton/newton/samples/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/newton/newton/samples/tests.py b/newton/newton/samples/tests.py
index 50b571a3..d419efa5 100644
--- a/newton/newton/samples/tests.py
+++ b/newton/newton/samples/tests.py
@@ -25,5 +25,5 @@ class SampleViewTest(unittest.TestCase):
def test_sample(self):
response = self.client.get("/samples/")
self.assertEqual(status.HTTP_200_OK, response.status_code, response.content)
- resp_data = json.loads(response.content)
+ resp_data = response.json()
self.assertEqual({"status": "active"}, resp_data)