mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Fix unit test to handle new Exception
This commit is contained in:
parent
e3c3845f73
commit
a24b964ea5
@ -36,8 +36,9 @@ class WinFileTestCase(TestCase):
|
||||
Make sure that an empty dictionary is returned if the file doesn't exist
|
||||
'''
|
||||
with patch('os.path.exists', return_value=False):
|
||||
ret = win_file.stats(self.FAKE_PATH)
|
||||
self.assertEqual(ret, {})
|
||||
self.assertRaises(CommandExecutionError,
|
||||
win_file.stats,
|
||||
self.FAKE_PATH)
|
||||
|
||||
def test_issue_43328_check_perms_ret_passed(self):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user