def test_clone_error(self):
        pool = mock.Mock()
        hypervisor = mock.Mock()
        hypervisor.storageVolLookupByPath.side_effect = libvirt.libvirtError('BOOM')
        with self.assertRaises(RuntimeError) as error:
            qemu.disk_clone(hypervisor, 'foo', pool, {'image': '/foo/bar/baz.qcow2', 'clone': {}})
            self.assertEqual(str(error), "/foo/bar/baz.qcow2 disk must be contained in a libvirt storage pool.")
RuntimeError is raised if the base image is not contained within a libvirt Pool.
dataset/ETHPy150Open F-Secure/see/see/context/resources/test/qemu_test.py/DiskCloneTest.test_clone_error