From 70219e318871357da53129f41f1ef3685e656fca Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 22 Nov 2017 11:12:08 +0100 Subject: [PATCH] Remove jsonutils usage Panko does not depends on oslo.serialization while it is using it. However, since it does not really need it, let's use the regular json attribute anyway. Change-Id: I63e5927c625d0a080bd6a9ea77ff939253039d5e --- panko/tests/functional/api/v2/test_event_scenarios.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/panko/tests/functional/api/v2/test_event_scenarios.py b/panko/tests/functional/api/v2/test_event_scenarios.py index b507e22b..a2b75958 100644 --- a/panko/tests/functional/api/v2/test_event_scenarios.py +++ b/panko/tests/functional/api/v2/test_event_scenarios.py @@ -16,7 +16,6 @@ import datetime -from oslo_serialization import jsonutils from oslo_utils import uuidutils import webtest.app @@ -762,7 +761,7 @@ class TestEventSort(EventTestBase): "':', or only sort key specified and sort dir will " "be default 'asc', the supported sort keys are: " "('message_id', 'generated')", - jsonutils.loads(resp.body)['error_message'] + resp.json['error_message'] ['faultstring']) def test_invalid_sort_dir(self): @@ -776,7 +775,7 @@ class TestEventSort(EventTestBase): "with ':', or only sort key specified and sort dir " "will be default 'asc', the supported sort " "directions are: ('asc', 'desc')", - jsonutils.loads(resp.body)['error_message'] + resp.json['error_message'] ['faultstring']) def test_sort_message_id(self):