diff options
author | Monty Taylor <mordred@inaugust.com> | 2013-01-23 09:59:46 -0500 |
---|---|---|
committer | Monty Taylor <mordred@inaugust.com> | 2013-01-23 09:59:46 -0500 |
commit | beb948b1d84aae66fb6e40de9b50ef25810684d3 (patch) | |
tree | 62b75fe1b85c29de0b81878e88cd5635b7291965 | |
parent | bce3d83daf9e188a3e690872c12f96bb08326d76 (diff) | |
download | oslo-serialization-beb948b1d84aae66fb6e40de9b50ef25810684d3.tar.gz |
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
-rw-r--r-- | tests/unit/test_jsonutils.py | 6 |
1 files changed, 3 insertions, 3 deletions
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]) |