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
This commit is contained in:
zhufl 2016-09-20 14:39:28 +08:00
parent 906fe64a77
commit db38519583
2 changed files with 0 additions and 6 deletions

View File

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

View File

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