def test_remove_app(self): ''' Test - Remove an IIS application. ''' kwargs = {'name': 'otherApp', 'site': 'MyTestSite'} with patch.dict(win_iis.__salt__): self.assertTrue(win_iis.remove_app(**kwargs))
def test_remove_app(self): """ Test - Remove an IIS application. """ kwargs = {"name": "otherApp", "site": "MyTestSite"} with patch.dict(win_iis.__salt__), patch( "salt.modules.win_iis._srvmgr", MagicMock(return_value={"retcode": 0})), patch( "salt.modules.win_iis.list_apps", MagicMock(return_value=APP_LIST)): self.assertTrue(win_iis.remove_app(**kwargs))
def test_remove_app(self): ''' Test - Remove an IIS application. ''' kwargs = {'name': 'otherApp', 'site': 'MyTestSite'} with patch.dict(win_iis.__salt__), \ patch('salt.modules.win_iis._srvmgr', MagicMock(return_value={'retcode': 0})), \ patch('salt.modules.win_iis.list_apps', MagicMock(return_value=APP_LIST)): self.assertTrue(win_iis.remove_app(**kwargs))