def test_get_certs(self): ''' Test - Get the available certificates in the given store. ''' with patch.dict(win_pki.__salt__), \ patch('salt.modules.win_pki._cmd_run', MagicMock(return_value=JSON_CERTS)), \ patch('salt.modules.win_pki._validate_cert_path', MagicMock(return_value=None)): self.assertEqual(win_pki.get_certs(), CERTS)
def test_get_certs(self): ''' Test - Get the available certificates in the given store. ''' with patch.dict(win_pki.__salt__): self.assertEqual(win_pki.get_certs(), CERTS)