diff options
author | zhufl <zhu.fanglei@zte.com.cn> | 2016-09-20 14:39:28 +0800 |
---|---|---|
committer | zhufl <zhu.fanglei@zte.com.cn> | 2016-09-20 14:39:28 +0800 |
commit | db385195830db0ff202c1f96e33b5a308f0dbae3 (patch) | |
tree | 47fb4d08af0cd206c4a42e8ae60e14105e819c86 | |
parent | 906fe64a774713daf4d061b95bf6b73711916d29 (diff) | |
download | ironic-db385195830db0ff202c1f96e33b5a308f0dbae3.tar.gz |
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: I8ce1dd0cc0cbba760caa6df6516b300622bb67fe
-rw-r--r-- | ironic/tests/unit/api/v1/test_root.py | 3 | ||||
-rw-r--r-- | ironic/tests/unit/drivers/modules/test_inspector.py | 3 |
2 files changed, 0 insertions, 6 deletions
diff --git a/ironic/tests/unit/api/v1/test_root.py b/ironic/tests/unit/api/v1/test_root.py index 931e018c6..817d2b7d2 100644 --- a/ironic/tests/unit/api/v1/test_root.py +++ b/ironic/tests/unit/api/v1/test_root.py @@ -21,9 +21,6 @@ from ironic.tests.unit.api import base as api_base class TestV1Routing(api_base.BaseApiTest): - def setUp(self): - super(TestV1Routing, self).setUp() - def test_route_checks_version(self): self.get_json('/') self._check_version.assert_called_once_with(mock.ANY, diff --git a/ironic/tests/unit/drivers/modules/test_inspector.py b/ironic/tests/unit/drivers/modules/test_inspector.py index 2b489efe1..96c1d1f4c 100644 --- a/ironic/tests/unit/drivers/modules/test_inspector.py +++ b/ironic/tests/unit/drivers/modules/test_inspector.py @@ -25,9 +25,6 @@ from ironic.tests.unit.objects import utils as obj_utils class DisabledTestCase(db_base.DbTestCase): - def setUp(self): - super(DisabledTestCase, self).setUp() - def _do_mock(self): # NOTE(dtantsur): fake driver always has inspection, using another one mgr_utils.mock_the_extension_manager("pxe_ssh") |