def test_test_cert(self): ''' Test - Check the certificate for validity. ''' with patch.dict(win_pki.__salt__), \ patch('salt.modules.win_pki._cmd_run', MagicMock(return_value='True')), \ patch('salt.modules.win_pki._validate_cert_path', MagicMock(return_value=None)): self.assertTrue(win_pki.test_cert(thumbprint=THUMBPRINT))
def test_test_cert(self): """ Test - Check the certificate for validity. """ with patch.dict(win_pki.__salt__), patch( "salt.modules.win_pki._cmd_run", MagicMock(return_value="True")), patch( "salt.modules.win_pki._validate_cert_path", MagicMock(return_value=None)): self.assertTrue(win_pki.test_cert(thumbprint=THUMBPRINT))
def test_test_cert(self): ''' Test - Check the certificate for validity. ''' with patch.dict(win_pki.__salt__): self.assertTrue(win_pki.test_cert(thumbprint=THUMBPRINT))