mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
keep mock_check name
This commit is contained in:
parent
6be87e63a7
commit
a03de0354d
1 changed files with 3 additions and 3 deletions
|
|
@ -199,12 +199,12 @@ class OSCPTestCryptography(unittest.TestCase):
|
|||
|
||||
@mock.patch('certbot.ocsp._determine_ocsp_server')
|
||||
@mock.patch('certbot.ocsp._check_ocsp_cryptography')
|
||||
def test_ensure_cryptography_toggled(self, mock_revoke, mock_determine):
|
||||
def test_ensure_cryptography_toggled(self, mock_check, mock_determine):
|
||||
mock_determine.return_value = ('http://example.com', 'example.com')
|
||||
self.checker.ocsp_revoked(self.cert_obj)
|
||||
|
||||
mock_revoke.assert_called_once_with(self.cert_path, self.chain_path,
|
||||
'http://example.com', 10, None)
|
||||
mock_check.assert_called_once_with(self.cert_path, self.chain_path,
|
||||
'http://example.com', 10, None)
|
||||
|
||||
def test_revoke(self):
|
||||
with _ocsp_mock(ocsp_lib.OCSPCertStatus.REVOKED, ocsp_lib.OCSPResponseStatus.SUCCESSFUL):
|
||||
|
|
|
|||
Loading…
Reference in a new issue