

def test_delete_destroy(self):
    'Pool is destroyed.'
    pool = mock.MagicMock()
    logger = mock.Mock()
    pool.XMLDesc.return_value = '<pool><path>/foo/bar</path></pool>'
    qemu.pool_delete(pool, logger)
    self.assertTrue(pool.destroy.called)

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