示例#1
0
    def test_display_net_on_a_vm_net(self, libvirt_del_net,
                                     libvirt_create_net):
        displaynetwork.create_network(NETNAME, REFID)
        libvirt_create_net.assert_called_with(NETNAME, NETNAME, REFID)

        displaynetwork.delete_network(NETNAME, REFID)
        libvirt_del_net.assert_called_with(NETNAME, REFID)
示例#2
0
    def test_display_net_on_a_vm_net(
            self, libvirt_del_net, libvirt_create_net):
        displaynetwork.create_network(NETNAME, REFID)
        libvirt_create_net.assert_called_with(NETNAME, NETNAME, REFID)

        displaynetwork.delete_network(NETNAME, REFID)
        libvirt_del_net.assert_called_with(NETNAME, REFID)
示例#3
0
文件: graphics.py 项目: vjuranek/vdsm
 def teardown(self):
     display_network = self._display_network()
     if display_network is not None:
         displaynetwork.delete_network(display_network, self._vm_id)
示例#4
0
文件: graphics.py 项目: xin49/vdsm
 def teardown(self):
     display_network = self.specParams.get('displayNetwork')
     if display_network:
         displaynetwork.delete_network(display_network, self.vmid)
示例#5
0
文件: graphics.py 项目: oVirt/vdsm
 def teardown(self):
     display_network = self.specParams.get('displayNetwork')
     if display_network:
         displaynetwork.delete_network(display_network, self.vmid)