예제 #1
0
 def test_restart_apppool(self):
     """
     Test - Restart an IIS application pool.
     """
     with patch.dict(win_iis.__salt__), patch(
             "salt.modules.win_iis._srvmgr",
             MagicMock(return_value={"retcode": 0})):
         self.assertTrue(win_iis.restart_apppool("MyTestPool"))
예제 #2
0
 def test_restart_apppool(self):
     '''
     Test - Restart an IIS application pool.
     '''
     with patch.dict(win_iis.__salt__), \
             patch('salt.modules.win_iis._srvmgr',
                   MagicMock(return_value={'retcode': 0})):
         self.assertTrue(win_iis.restart_apppool('MyTestPool'))
예제 #3
0
파일: win_iis_test.py 프로젝트: peval/salt
 def test_restart_apppool(self):
     '''
     Test - Restart an IIS application pool.
     '''
     with patch.dict(win_iis.__salt__):
         self.assertTrue(win_iis.restart_apppool('MyTestPool'))
예제 #4
0
파일: win_iis_test.py 프로젝트: bryson/salt
 def test_restart_apppool(self):
     '''
     Test - Restart an IIS application pool.
     '''
     with patch.dict(win_iis.__salt__):
         self.assertTrue(win_iis.restart_apppool('MyTestPool'))