summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gorodnev <agorodnev@mirantis.com>2013-08-09 05:34:55 -0400
committerAlexander Gorodnev <agorodnev@mirantis.com>2013-08-09 05:34:55 -0400
commit62428f96d5ca1452b3a1f17630722729fe7684e9 (patch)
treec7d0fbe63aae50ad0e36fda5d2fcd911e47f61b0
parent1e72b6c00f40fb581d230f4217fd86ae92ea59e7 (diff)
downloadoslo-serialization-62428f96d5ca1452b3a1f17630722729fe7684e9.tar.gz
Replace using tests.utils with openstack.common.test
It is the first step to replace using tests.utils with openstack.common.test. All these tests don't use mock objects, stubs, config files and use only BaseTestCase class. Change-Id: I511816b5c9e6c5c34ebff199296ee4fc8b84c672 bp: common-unit-tests
-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 5dc23f7..41bbcf5 100644
--- a/tests/unit/test_jsonutils.py
+++ b/tests/unit/test_jsonutils.py
@@ -22,10 +22,10 @@ import netaddr
import six
from openstack.common import jsonutils
-from tests import utils
+from openstack.common import test
-class JSONUtilsTestCase(utils.BaseTestCase):
+class JSONUtilsTestCase(test.BaseTestCase):
def test_dumps(self):
self.assertEqual(jsonutils.dumps({'a': 'b'}), '{"a": "b"}')
@@ -38,7 +38,7 @@ class JSONUtilsTestCase(utils.BaseTestCase):
self.assertEqual(jsonutils.load(x), {'a': 'b'})
-class ToPrimitiveTestCase(utils.BaseTestCase):
+class ToPrimitiveTestCase(test.BaseTestCase):
def test_list(self):
self.assertEquals(jsonutils.to_primitive([1, 2, 3]), [1, 2, 3])