From 8c80224ecb5194a5e2ed5f74f1c7f457202d21a3 Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Wed, 23 Jan 2013 09:59:46 -0500 Subject: Replace direct use of testtools BaseTestCase. Using the BaseTestCase across the tests in the tree lets us put in log fixtures and consistently handle mox and stubout. Part of blueprint grizzly-testtools. Change-Id: Iba7eb2c63b0c514009b2c28e5930b27726a147b0 --- tests/unit/test_jsonutils.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/unit/test_jsonutils.py') diff --git a/tests/unit/test_jsonutils.py b/tests/unit/test_jsonutils.py index eebbfb8..f618a05 100644 --- a/tests/unit/test_jsonutils.py +++ b/tests/unit/test_jsonutils.py @@ -17,13 +17,13 @@ import datetime import StringIO -import testtools import xmlrpclib from openstack.common import jsonutils +from tests import utils -class JSONUtilsTestCase(testtools.TestCase): +class JSONUtilsTestCase(utils.BaseTestCase): def test_dumps(self): self.assertEqual(jsonutils.dumps({'a': 'b'}), '{"a": "b"}') @@ -36,7 +36,7 @@ class JSONUtilsTestCase(testtools.TestCase): self.assertEqual(jsonutils.load(x), {'a': 'b'}) -class ToPrimitiveTestCase(testtools.TestCase): +class ToPrimitiveTestCase(utils.BaseTestCase): def test_list(self): self.assertEquals(jsonutils.to_primitive([1, 2, 3]), [1, 2, 3]) -- cgit