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

View File

@ -132,7 +132,7 @@ class TestAcme(unittest.TestCase):
mock_authz.dns_challenge.append(dns_challenge)
# with self.assertRaises(ValueError):
# 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("OpenSSL.crypto", return_value="mock_cert")