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: I015e4faa2e185a49609078c281f449c65a0d8b27
This commit is contained in:
parent
d1512e5668
commit
9ab65835e5
|
@ -524,9 +524,6 @@ class GetDeviceBlockSizeTestCase(base.IronicLibTestCase):
|
|||
@mock.patch.object(disk_utils, 'convert_image', autospec=True)
|
||||
class PopulateImageTestCase(base.IronicLibTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(PopulateImageTestCase, self).setUp()
|
||||
|
||||
def test_populate_raw_image(self, mock_cg, mock_qinfo, mock_dd):
|
||||
type(mock_qinfo.return_value).file_format = mock.PropertyMock(
|
||||
return_value='raw')
|
||||
|
|
Loading…
Reference in New Issue