Fix bad mock in win_service_test

This commit is contained in:
Mike Place 2016-01-22 13:37:32 -07:00
parent 44dea20bf3
commit f27b602a0f

View file

@ -70,7 +70,7 @@ class WinServiceTestCase(TestCase):
Test to return all installed services
'''
mock = MagicMock(return_value="")
with patch.dict(win_service.__salt__, {'cmd.run': mock}):
with patch.dict(win_service.__salt__, {'cmd.shell': mock}):
self.assertListEqual(win_service.get_all(), [])
def test_get_service_name(self):