示例#1
0
 def test_remove(self):
     dom_list = _fill_doms(NUM)
     # random pick
     doms.remove(dom_list[2].uuid)
     for dom in doms.get_all():  # FIXME: better avoid this.
         self.assertNotEquals(dom.UUIDString(),
                              dom_list[2].uuid)
示例#2
0
 def test_remove(self):
     dom_list = _fill_doms(NUM)
     # random pick
     doms.remove(dom_list[2].uuid)
     for dom in doms.get_all():  # FIXME: better avoid this.
         self.assertNotEquals(dom.UUIDString(),
                              dom_list[2].uuid)
示例#3
0
    def test_destroy_unregistered_forcefully(self):
        with conttestlib.tmp_run_dir():
            dom = domain.Domain.create(
                conttestlib.minimal_dom_xml()
            )

        doms.remove(dom.UUIDString())
        self.assertRaises(libvirt.libvirtError, dom.destroy)
示例#4
0
文件: domain_test.py 项目: EdDev/vdsm
    def test_destroy_unregistered_forcefully(self):
        with conttestlib.tmp_run_dir():
            dom = domain.Domain.create(
                conttestlib.minimal_dom_xml()
            )

        doms.remove(dom.UUIDString())
        self.assertRaises(libvirt.libvirtError, dom.destroy)