def test_stop_time_service(self): ''' Test to stop the windows time service ''' mock = MagicMock(return_value=True) with patch.dict(win_system.__salt__, {'service.stop': mock}): self.assertTrue(win_system.stop_time_service())
def test_stop_time_service(self): ''' Test to stop the windows time service ''' mock = MagicMock(return_value=True) with patch.dict(win_system.__salt__, {'service.stop': mock}): self.assertTrue(win_system.stop_time_service())