From edf0beb68ac02fdfc8bb1b325cc6f643bf54c5d1 Mon Sep 17 00:00:00 2001 From: zhufl Date: Tue, 20 Sep 2016 14:24:38 +0800 Subject: [PATCH] Remove unnecessary setUp setUp will be automatically called around each testcase, so this is to remove setUp that doing nothing additional than super to keep code clean. Change-Id: I33dafd4525c9815961aa55ad652bc8df20cd84d4 --- tests/unit/common/db/test_api.py | 3 --- tests/unit/plugins/openstack/scenarios/watcher/test_utils.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/tests/unit/common/db/test_api.py b/tests/unit/common/db/test_api.py index a3aa598f47..1e02aec345 100644 --- a/tests/unit/common/db/test_api.py +++ b/tests/unit/common/db/test_api.py @@ -79,9 +79,6 @@ class SerializeTestCase(test.DBTestCase): class FixDeploymentTestCase(test.DBTestCase): - def setUp(self): - super(FixDeploymentTestCase, self).setUp() - def test_fix_deployment(self): deployment = { "credentials": [("bong", {"admin": "foo", "users": "bar"})]} diff --git a/tests/unit/plugins/openstack/scenarios/watcher/test_utils.py b/tests/unit/plugins/openstack/scenarios/watcher/test_utils.py index 0cf9e57eb3..afb54f452f 100644 --- a/tests/unit/plugins/openstack/scenarios/watcher/test_utils.py +++ b/tests/unit/plugins/openstack/scenarios/watcher/test_utils.py @@ -24,9 +24,6 @@ CONF = cfg.CONF class WatcherScenarioTestCase(test.ScenarioTestCase): - def setUp(self): - super(WatcherScenarioTestCase, self).setUp() - def test_create_audit_template(self): watcher_scenario = utils.WatcherScenario(self.context) watcher_scenario.generate_random_name = mock.MagicMock(