@mock.patch('certbot._internal.main._delete_if_appropriate')
@mock.patch('certbot._internal.main._determine_account')
def test_revoke_without_key(self, mock_determine_account, mock_delete_if_appropriate):
    mock_delete_if_appropriate.return_value = False
    mock_determine_account.return_value = (mock.MagicMock(), None)
    (_, _, _, client) = self._call(['--cert-path', CERT, 'revoke'])
    with open(CERT) as f:
        cert = crypto_util.pyopenssl_load_certificate(f.read())[0]
        mock_revoke = client.acme_from_config_key().revoke
        mock_revoke.assert_called_once_with(jose.ComparableX509(cert), mock.ANY)
@mock.patch('certbot._internal.main._delete_if_appropriate')
@mock.patch('certbot._internal.main._determine_account')
def test_revoke_without_key(self, mock_determine_account, mock_delete_if_appropriate):
    mock_delete_if_appropriate.return_value = False
    mock_determine_account.return_value = (mock.MagicMock(), None)
    (_, _, _, client) = self._call(['--cert-path', CERT, 'revoke'])
    with open(CERT) as f:
        cert = crypto_util.pyopenssl_load_certificate(f.read())[0]
        mock_revoke = client.acme_from_config_key().revoke
        mock_revoke.assert_called_once_with(jose.ComparableX509(cert), mock.ANY)