'Test delete'

@test_util.patch_get_utility()
@mock.patch('certbot.cert_manager.lineage_for_certname')
@mock.patch('certbot.storage.delete_files')
def test_delete(self, mock_delete_files, mock_lineage_for_certname, unused_get_utility):

    mock_lineage_for_certname.return_value = self.test_rc
    self.config.certname = 'example.org'
    from certbot import cert_manager
    cert_manager.delete(self.config)
    self.assertTrue(mock_delete_files.called)
