fixed test addressing issue #43307, disk.format_ to disk.format

This commit is contained in:
Matthew Summers 2017-10-16 09:47:40 -05:00
parent 3d597db51c
commit 16e1c1dfc8
No known key found for this signature in database
GPG key ID: 31ED9C53428A61E9

View file

@ -100,7 +100,7 @@ class BlockdevTestCase(TestCase, LoaderModuleMockMixin):
# Test state return when block device format fails
with patch.dict(blockdev.__salt__, {'cmd.run': MagicMock(return_value=mock_ext4),
'disk.format_': MagicMock(return_value=True)}):
'disk.format': MagicMock(return_value=True)}):
comt = ('Failed to format {0}'.format(name))
ret.update({'comment': comt, 'result': False})
with patch.object(salt.utils, 'which',