def test_remove_cert(self): ''' Test - Remove the certificate from the given certificate store. ''' with patch.dict(win_pki.__salt__), \ patch('salt.modules.win_pki._cmd_run', MagicMock(return_value=None)), \ patch('salt.modules.win_pki._validate_cert_path', MagicMock(return_value=None)), \ patch('salt.modules.win_pki.get_certs', MagicMock(return_value=CERTS)): self.assertTrue(win_pki.remove_cert(thumbprint=THUMBPRINT[::-1]))
def test_remove_cert(self): ''' Test - Remove the certificate from the given certificate store. ''' with patch.dict(win_pki.__salt__): self.assertTrue(win_pki.remove_cert(thumbprint=THUMBPRINT[::-1]))