Merge "Remove unnecessary setUp and tearDown"
This commit is contained in:
commit
10ee85c725
@ -342,9 +342,6 @@ class ServerMigrationsPolicyEnforcementV223(
|
||||
|
||||
wsgi_api_version = '2.23'
|
||||
|
||||
def setUp(self):
|
||||
super(ServerMigrationsPolicyEnforcementV223, self).setUp()
|
||||
|
||||
def test_migration_index_failed(self):
|
||||
rule_name = "os_compute_api:servers:migrations:index"
|
||||
self.policy.set_rules({rule_name: "project:non_fake"})
|
||||
@ -369,9 +366,6 @@ class ServerMigrationsPolicyEnforcementV224(
|
||||
|
||||
wsgi_api_version = '2.24'
|
||||
|
||||
def setUp(self):
|
||||
super(ServerMigrationsPolicyEnforcementV224, self).setUp()
|
||||
|
||||
def test_migrate_delete_failed(self):
|
||||
rule_name = "os_compute_api:servers:migrations:delete"
|
||||
self.policy.set_rules({rule_name: "project:non_fake"})
|
||||
|
@ -20,9 +20,6 @@ from nova.tests.unit.scheduler import fakes
|
||||
|
||||
class TestDiskFilter(test.NoDBTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestDiskFilter, self).setUp()
|
||||
|
||||
def test_disk_filter_passes(self):
|
||||
filt_cls = disk_filter.DiskFilter()
|
||||
spec_obj = objects.RequestSpec(
|
||||
|
@ -42,9 +42,6 @@ _AGGREGATE_FIXTURES = [
|
||||
|
||||
|
||||
class TestUtils(test.NoDBTestCase):
|
||||
def setUp(self):
|
||||
super(TestUtils, self).setUp()
|
||||
|
||||
def test_aggregate_values_from_key(self):
|
||||
host_state = fakes.FakeHostState(
|
||||
'fake', 'node', {'aggregates': _AGGREGATE_FIXTURES})
|
||||
|
@ -29,9 +29,6 @@ MAP_PARTITION = "/dev/mapper/nullp77"
|
||||
|
||||
|
||||
class MountTestCase(test.NoDBTestCase):
|
||||
def setUp(self):
|
||||
super(MountTestCase, self).setUp()
|
||||
|
||||
def _test_map_dev(self, partition):
|
||||
mount = api.Mount(mock.sentinel.image, mock.sentinel.mount_dir)
|
||||
mount.device = ORIG_DEVICE
|
||||
|
@ -52,9 +52,6 @@ class VMwareVifTestCase(test.NoDBTestCase):
|
||||
self.session = fake.FakeSession()
|
||||
self.cluster = None
|
||||
|
||||
def tearDown(self):
|
||||
super(VMwareVifTestCase, self).tearDown()
|
||||
|
||||
def test_ensure_vlan_bridge(self):
|
||||
self.mox.StubOutWithMock(network_util, 'get_network_with_the_name')
|
||||
self.mox.StubOutWithMock(network_util,
|
||||
|
Loading…
Reference in New Issue
Block a user