

@mock.patch('shutil.rmtree')
@mock.patch('os.path.exists')
def test_delete_pool_folder(self, os_mock, rm_mock):
    "Pool's folder is deleted after Pool's deletion."
    pool = mock.MagicMock()
    logger = mock.Mock()
    os_mock.return_value = True
    pool.XMLDesc.return_value = '<pool><path>/foo/bar/baz</path></pool>'
    qemu.pool_delete(pool, logger)
    rm_mock.assert_called_with('/foo/bar/baz')

dataset/ETHPy150Open F-Secure/see/see/context/resources/test/qemu_test.py PoolDeleteTest.test_delete_pool_folder/original