Fixing DeprecationWarning: callable is None
This commit is contained in:
parent
2dac95c6fb
commit
d821024e35
|
@ -130,9 +130,8 @@ class TestAcme(unittest.TestCase):
|
||||||
mock_authz.dns_challenge = []
|
mock_authz.dns_challenge = []
|
||||||
dns_challenge = Mock()
|
dns_challenge = Mock()
|
||||||
mock_authz.dns_challenge.append(dns_challenge)
|
mock_authz.dns_challenge.append(dns_challenge)
|
||||||
self.assertRaises(
|
with self.assertRaises(ValueError):
|
||||||
ValueError, self.acme.complete_dns_challenge(mock_acme, mock_authz)
|
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")
|
||||||
|
|
Loading…
Reference in New Issue