def test_list_cert_bindings(self): ''' Test - List certificate bindings for an IIS site. ''' key = '*:443:mytestsite.local' with patch.dict(win_iis.__salt__): self.assertEqual(win_iis.list_cert_bindings('MyTestSite'), {key: BINDING_LIST[key]})
def test_list_cert_bindings(self): """ Test - List certificate bindings for an IIS site. """ key = "*:443:mytestsite.local" with patch.dict(win_iis.__salt__), patch( "salt.modules.win_iis.list_sites", MagicMock(return_value=SITE_LIST)): self.assertEqual(win_iis.list_cert_bindings("MyTestSite"), {key: BINDING_LIST[key]})
def test_list_cert_bindings(self): ''' Test - List certificate bindings for an IIS site. ''' key = '*:443:mytestsite.local' with patch.dict(win_iis.__salt__), \ patch('salt.modules.win_iis.list_sites', MagicMock(return_value=SITE_LIST)): self.assertEqual(win_iis.list_cert_bindings('MyTestSite'), {key: BINDING_LIST[key]})