diff options
| author | Riccardo Pittau <elfosardo@gmail.com> | 2022-06-17 09:34:07 +0200 |
|---|---|---|
| committer | Riccardo Pittau <elfosardo@gmail.com> | 2022-06-17 09:37:35 +0200 |
| commit | 64ffd2ee8052e69d56c4bba7fa8c4e6eae145af1 (patch) | |
| tree | d5f20ee2679c9074c1fb6c7739ff21601d28d00c /ironic_python_agent/tests/unit/test_agent.py | |
| parent | 09ea41c83dda9b46739c1d9d0498476db855d952 (diff) | |
| download | ironic-python-agent-64ffd2ee8052e69d56c4bba7fa8c4e6eae145af1.tar.gz | |
Remove oslo.serialization dependency
Use pure json instead of jsonutils.
Borrow encode function from oslo.serialization to be used in the
utils module.
Change-Id: Ied9a2259a4329a86b4f0853bd1fb187563c0a036
Diffstat (limited to 'ironic_python_agent/tests/unit/test_agent.py')
| -rw-r--r-- | ironic_python_agent/tests/unit/test_agent.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ironic_python_agent/tests/unit/test_agent.py b/ironic_python_agent/tests/unit/test_agent.py index d90b0414..b5e40bf6 100644 --- a/ironic_python_agent/tests/unit/test_agent.py +++ b/ironic_python_agent/tests/unit/test_agent.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import json import socket import time from unittest import mock @@ -19,7 +20,6 @@ from unittest import mock from ironic_lib import exception as lib_exc from oslo_concurrency import processutils from oslo_config import cfg -from oslo_serialization import jsonutils import pkg_resources from stevedore import extension @@ -192,8 +192,8 @@ class TestBaseAgent(ironic_agent_base.IronicAgentTest): # object. a_encoded = self.encoder.encode(a) b_encoded = self.encoder.encode(b) - self.assertEqual(jsonutils.loads(a_encoded), - jsonutils.loads(b_encoded)) + self.assertEqual(json.loads(a_encoded), + json.loads(b_encoded)) def test_get_status(self): started_at = time.time() |
