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:
lingyongxu 2017-06-08 17:15:57 +08:00
parent d1512e5668
commit 9ab65835e5
1 changed files with 0 additions and 3 deletions

View File

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