def test_create_apppool(self): """ Test - Create an IIS application pool. """ with patch("salt.modules.win_iis._srvmgr", MagicMock(return_value={"retcode": 0})), patch( "salt.modules.win_iis.list_apppools", MagicMock(return_value=dict())), patch.dict( win_iis.__salt__): self.assertTrue(win_iis.create_apppool("MyTestPool"))
def test_create_apppool(self): ''' Test - Create an IIS application pool. ''' with patch('salt.modules.win_iis._srvmgr', MagicMock(return_value={'retcode': 0})), \ patch('salt.modules.win_iis.list_apppools', MagicMock(return_value=dict())), \ patch.dict(win_iis.__salt__): self.assertTrue(win_iis.create_apppool('MyTestPool'))
def test_create_apppool(self): ''' Test - Create an IIS application pool. ''' with patch.dict(win_iis.__salt__): self.assertTrue(win_iis.create_apppool('MyTestPool'))