Remove unnecessary tearDown function in testcase

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

Change-Id: I3a8977fb1ea035acd0da71233e184ed293619556
This commit is contained in:
XieYingYun
2017-04-01 10:59:46 +08:00
parent 88bc8dc5ce
commit 59379eec8a
2 changed files with 0 additions and 6 deletions

View File

@@ -86,9 +86,6 @@ class RbdTestCase(test.NoDBTestCase):
self.volume_name = u'volume-00000001'
self.snap_name = u'test-snap'
def tearDown(self):
super(RbdTestCase, self).tearDown()
@mock.patch.object(rbd_utils, 'rbd')
def test_rbdproxy_wraps_rbd(self, mock_rbd):
proxy = rbd_utils.RbdProxy()

View File

@@ -17730,9 +17730,6 @@ class LibvirtVolumeSnapshotTestCase(test.NoDBTestCase):
'merge_target_file':
'some_other_file'}
def tearDown(self):
super(LibvirtVolumeSnapshotTestCase, self).tearDown()
@mock.patch('nova.virt.block_device.DriverVolumeBlockDevice.'
'refresh_connection_info')
@mock.patch('nova.objects.block_device.BlockDeviceMapping.'