def test_list_vdirs(self): ''' Test - Get configured IIS virtual directories. ''' vdirs = {'TestVdir': {'sourcepath': r'C:\inetpub\vdirs\TestVdir'}} with patch.dict(win_iis.__salt__): self.assertEqual(win_iis.list_vdirs('MyTestSite'), vdirs)
def test_list_vdirs(self): """ Test - Get configured IIS virtual directories. """ vdirs = {"TestVdir": {"sourcepath": r"C:\inetpub\vdirs\TestVdir"}} with patch.dict(win_iis.__salt__), patch( "salt.modules.win_iis._srvmgr", MagicMock(return_value=LIST_VDIRS_SRVMGR)): self.assertEqual(win_iis.list_vdirs("MyTestSite"), vdirs)
def test_list_vdirs(self): ''' Test - Get configured IIS virtual directories. ''' vdirs = {'TestVdir': {'sourcepath': r'C:\inetpub\vdirs\TestVdir'}} with patch.dict(win_iis.__salt__), \ patch('salt.modules.win_iis._srvmgr', MagicMock(return_value=LIST_VDIRS_SRVMGR)): self.assertEqual(win_iis.list_vdirs('MyTestSite'), vdirs)
def test_list_vdirs(self): ''' Test - Get configured IIS virtual directories. ''' vdirs = { 'TestVdir': { 'sourcepath': r'C:\inetpub\vdirs\TestVdir' } } with patch.dict(win_iis.__salt__): self.assertEqual(win_iis.list_vdirs('MyTestSite'), vdirs)