summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Sergeyev <vsergeyev@mirantis.com>2014-04-15 13:05:35 +0300
committerVictor Sergeyev <vsergeyev@mirantis.com>2014-04-15 13:05:35 +0300
commitdd805353fa1624d26735447d61c8bbdbcffd0025 (patch)
treeef88d0a586117dff1d7a2e3b82cd3dcbf698be0b
parent659c3aaf2891b17aa01357d4aeab39255ef87dbc (diff)
downloadoslo-serialization-dd805353fa1624d26735447d61c8bbdbcffd0025.tar.gz
Use oslotest instead of common test module
Module openstack.common.test is obsolete, so we should use oslotest library instead of it. Modified tests and common database code, new requirement added. Change-Id: I853e548f11a4c3785eaf75124510a6d789536634
-rw-r--r--tests/unit/test_jsonutils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/test_jsonutils.py b/tests/unit/test_jsonutils.py
index 5ab04ed..dfdb625 100644
--- a/tests/unit/test_jsonutils.py
+++ b/tests/unit/test_jsonutils.py
@@ -16,15 +16,15 @@
import datetime
import netaddr
+from oslotest import base as test_base
import six
import six.moves.xmlrpc_client as xmlrpclib
from openstack.common import gettextutils
from openstack.common import jsonutils
-from openstack.common import test
-class JSONUtilsTestCase(test.BaseTestCase):
+class JSONUtilsTestCase(test_base.BaseTestCase):
def test_dumps(self):
self.assertEqual(jsonutils.dumps({'a': 'b'}), '{"a": "b"}')
@@ -37,7 +37,7 @@ class JSONUtilsTestCase(test.BaseTestCase):
self.assertEqual(jsonutils.load(x), {'a': 'b'})
-class ToPrimitiveTestCase(test.BaseTestCase):
+class ToPrimitiveTestCase(test_base.BaseTestCase):
def test_list(self):
self.assertEqual(jsonutils.to_primitive([1, 2, 3]), [1, 2, 3])