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
This commit is contained in:
zhufl 2016-09-20 14:24:38 +08:00
parent faa00bea07
commit edf0beb68a
2 changed files with 0 additions and 6 deletions

View File

@ -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"})]}

View File

@ -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(