Fixed tests

This commit is contained in:
salt_build 2015-05-11 15:49:19 +00:00
parent ad44d79f26
commit b3f284c517

View File

@ -149,7 +149,7 @@ class WinServiceTestCase(TestCase):
scheduler to enable restarting the salt-minion
'''
mock_true = MagicMock(return_value=True)
with patch.dict(win_service.__salt__, {'cmd.run': mock_true}):
with patch.dict(win_service.__salt__, {'cmd.shell': mock_true}):
self.assertTrue(win_service.create_win_salt_restart_task())
def test_execute_salt_restart_task(self):
@ -157,7 +157,7 @@ class WinServiceTestCase(TestCase):
Test to run the Windows Salt restart task
'''
mock_true = MagicMock(return_value=True)
with patch.dict(win_service.__salt__, {'cmd.run': mock_true}):
with patch.dict(win_service.__salt__, {'cmd.shell': mock_true}):
self.assertTrue(win_service.execute_salt_restart_task())
def test_status(self):