Remove unnecessary setUp function in testcase

In testcase, setUp will be called automatically. This patch used to
remove setUp functions that do nothing. Besides, it will keep code clean.

Change-Id: I94c756ab0ee9d6ac0eac57b509473c509e3b46ba
This commit is contained in:
XieYingYun
2017-03-30 15:11:36 +08:00
parent d2b622e187
commit ef006efcfe
2 changed files with 0 additions and 6 deletions

View File

@@ -40,9 +40,6 @@ LSCPU_NO_ONLINE = """# The following is the parsable format, which can be fed to
class TestOSCapability(base.BaseTestCase):
def setUp(self):
super(TestOSCapability, self).setUp()
@mock.patch('oslo_concurrency.processutils.execute')
def test_get_cpu_numa_info_with_online(self, mock_output):
mock_output.return_value = LSCPU_ON

View File

@@ -16,9 +16,6 @@ from zun.tests import base
class TestNUMA(base.BaseTestCase):
def setUp(self):
super(TestNUMA, self).setUp()
def test_free_cpus_numa(self):
obj = objects.NUMATopology(cells=[
objects.NUMANode(