Fixing DeprecationWarning: callable is None: another syntax

This commit is contained in:
sayali 2020-11-02 18:58:38 -08:00
parent 86b2cfbe4a
commit 3d64aa8d11
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ class TestAcme(unittest.TestCase):
mock_authz.dns_challenge.append(dns_challenge) mock_authz.dns_challenge.append(dns_challenge)
# with self.assertRaises(ValueError): # with self.assertRaises(ValueError):
# self.acme.complete_dns_challenge(mock_acme, mock_authz) # self.acme.complete_dns_challenge(mock_acme, mock_authz)
self.assertRaises(ValueError, self.acme.complete_dns_challenge(mock_acme, mock_authz)) self.assertRaises(ValueError, self.acme.complete_dns_challenge, mock_acme, mock_authz)
@patch("acme.client.Client") @patch("acme.client.Client")
@patch("OpenSSL.crypto", return_value="mock_cert") @patch("OpenSSL.crypto", return_value="mock_cert")