Adjust unit tests

This commit is contained in:
David Murphy 2018-08-07 15:44:05 -06:00
parent eaed033cde
commit 77dd7a1743

View file

@ -274,9 +274,8 @@ class MountTestCase(TestCase, LoaderModuleMockMixin):
'''
mock = MagicMock(return_value=True)
with patch.dict(mount.__grains__, {'os': 'AIX', 'kernel': 'AIX'}):
with patch.object(os.path, 'isfile', mock):
self.assertRaises(CommandExecutionError,
mount.set_filesystems, 'A', 'B', 'C')
self.assertRaises(CommandExecutionError,
mount.set_filesystems, 'A', 'B', 'C')
mock_read = MagicMock(side_effect=OSError)
with patch.object(os.path, 'isfile', mock):