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"))
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'))
def test_restart_apppool(self): ''' Test - Restart an IIS application pool. ''' with patch.dict(win_iis.__salt__): self.assertTrue(win_iis.restart_apppool('MyTestPool'))