From db385195830db0ff202c1f96e33b5a308f0dbae3 Mon Sep 17 00:00:00 2001 From: zhufl Date: Tue, 20 Sep 2016 14:39:28 +0800 Subject: 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 --- ironic/tests/unit/api/v1/test_root.py | 3 --- ironic/tests/unit/drivers/modules/test_inspector.py | 3 --- 2 files changed, 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") -- cgit v1.2.1