@mock.patch('certbot._internal.main._delete_if_appropriate')
@mock.patch('certbot._internal.cert_manager.delete')
@test_util.patch_get_utility()
def test_revocation_with_prompt(self, mock_get_utility, mock_delete, mock_delete_if_appropriate):
    mock_get_utility().yesno.return_value = False
    mock_delete_if_appropriate.return_value = False
    self._call()
    self.assertFalse(mock_delete.called)
@mock.patch('certbot._internal.main._delete_if_appropriate')
@mock.patch('certbot._internal.cert_manager.delete')
@test_util.patch_get_utility()
def test_revocation_with_prompt(self, mock_get_utility, mock_delete, mock_delete_if_appropriate):
    mock_get_utility().yesno.return_value = False
    mock_delete_if_appropriate.return_value = False
    self._call()
    self.assertFalse(mock_delete.called)