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)
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)
def teardown(self): display_network = self._display_network() if display_network is not None: displaynetwork.delete_network(display_network, self._vm_id)
def teardown(self): display_network = self.specParams.get('displayNetwork') if display_network: displaynetwork.delete_network(display_network, self.vmid)