diff options
author | jichenjc <jichenjc@cn.ibm.com> | 2015-10-07 04:03:38 +0800 |
---|---|---|
committer | jichenjc <jichenjc@cn.ibm.com> | 2015-10-07 04:03:38 +0800 |
commit | ee42f6fca078bc47252a6a42964866c71d9df6e7 (patch) | |
tree | b0b2ee08a34f9a0885d3831f8612865f505f6b7e /nova/tests/unit/test_test.py | |
parent | 02b7e64b29dd707c637ea7026d337e5cb196f337 (diff) | |
download | nova-ee42f6fca078bc47252a6a42964866c71d9df6e7.tar.gz |
Make test cases in test_test.py use NoDBTest
they are not related to DB access, make them
inherit from NoDBTest.
Change-Id: I297c14359f1c20af03f4c9639b31987b8c9bad6e
Diffstat (limited to 'nova/tests/unit/test_test.py')
-rw-r--r-- | nova/tests/unit/test_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/tests/unit/test_test.py b/nova/tests/unit/test_test.py index cc7aced628..20b62e9c8e 100644 --- a/nova/tests/unit/test_test.py +++ b/nova/tests/unit/test_test.py @@ -54,7 +54,7 @@ class IsolationTestCase(test.TestCase): server.start() -class JsonTestCase(test.TestCase): +class JsonTestCase(test.NoDBTestCase): def test_json_equal(self): expected = { "employees": [ @@ -149,7 +149,7 @@ class JsonTestCase(test.TestCase): self.fail("This should have raised a mismatch exception") -class BadLogTestCase(test.TestCase): +class BadLogTestCase(test.NoDBTestCase): """Make sure a mis-formatted debug log will get caught.""" def test_bad_debug_log(self): @@ -157,7 +157,7 @@ class BadLogTestCase(test.TestCase): LOG.debug, "this is a misformated %(log)s", {'nothing': 'nothing'}) -class MatchTypeTestCase(test.TestCase): +class MatchTypeTestCase(test.NoDBTestCase): def test_match_type_simple(self): matcher = test.MatchType(dict) |