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:
parent
faa00bea07
commit
edf0beb68a
@ -79,9 +79,6 @@ class SerializeTestCase(test.DBTestCase):
|
|||||||
|
|
||||||
|
|
||||||
class FixDeploymentTestCase(test.DBTestCase):
|
class FixDeploymentTestCase(test.DBTestCase):
|
||||||
def setUp(self):
|
|
||||||
super(FixDeploymentTestCase, self).setUp()
|
|
||||||
|
|
||||||
def test_fix_deployment(self):
|
def test_fix_deployment(self):
|
||||||
deployment = {
|
deployment = {
|
||||||
"credentials": [("bong", {"admin": "foo", "users": "bar"})]}
|
"credentials": [("bong", {"admin": "foo", "users": "bar"})]}
|
||||||
|
@ -24,9 +24,6 @@ CONF = cfg.CONF
|
|||||||
|
|
||||||
class WatcherScenarioTestCase(test.ScenarioTestCase):
|
class WatcherScenarioTestCase(test.ScenarioTestCase):
|
||||||
|
|
||||||
def setUp(self):
|
|
||||||
super(WatcherScenarioTestCase, self).setUp()
|
|
||||||
|
|
||||||
def test_create_audit_template(self):
|
def test_create_audit_template(self):
|
||||||
watcher_scenario = utils.WatcherScenario(self.context)
|
watcher_scenario = utils.WatcherScenario(self.context)
|
||||||
watcher_scenario.generate_random_name = mock.MagicMock(
|
watcher_scenario.generate_random_name = mock.MagicMock(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user