@mock.patch('shutil.rmtree')
    @mock.patch('os.path.exists')
    def test_delete_pool_folder_error(self, os_mock, rm_mock):
        pool = mock.MagicMock()
        logger = mock.Mock()
        os_mock.return_value = True
        pool.XMLDesc.return_value = """<pool><path>/foo/bar/baz</path></pool>"""
        pool.destroy.side_effect = libvirt.libvirtError('BOOM')
        qemu.pool_delete(pool, logger)
        rm_mock.assert_called_with('/foo/bar/baz')
Resolve placeholders in data_source URL.
dataset/ETHPy150Open F-Secure/see/see/context/resources/test/qemu_test.py/PoolDeleteTest.test_delete_pool_folder_error--crossover with--dataset/ETHPy150Open openstack/sahara/sahara/service/edp/job_utils.py/_construct_data_source_url