Exemplo n.º 1
0
 def test_start_time_service(self):
     '''
         Test to start the Windows time service
     '''
     mock = MagicMock(return_value=True)
     with patch.dict(win_system.__salt__, {'service.start': mock}):
         self.assertTrue(win_system.start_time_service())
Exemplo n.º 2
0
 def test_start_time_service(self):
     '''
         Test to start the Windows time service
     '''
     mock = MagicMock(return_value=True)
     with patch.dict(win_system.__salt__, {'service.start': mock}):
         self.assertTrue(win_system.start_time_service())