From a03de0354d0a53b38cb52e4d37dfb949f1ede25a Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Wed, 20 May 2020 14:38:22 -0700 Subject: [PATCH] keep mock_check name --- certbot/tests/ocsp_test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/certbot/tests/ocsp_test.py b/certbot/tests/ocsp_test.py index d4a945e97..bea28f9f0 100644 --- a/certbot/tests/ocsp_test.py +++ b/certbot/tests/ocsp_test.py @@ -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):