def testParseSRIOV_VFDeviceParams(self): deviceXML = hostdev._parse_device_params( libvirtconnection.get().nodeDeviceLookupByName( _SRIOV_VF).XMLDesc() ) self.assertEquals(_SRIOV_VF_PARSED, deviceXML)
def testParseNetDeviceParams(self): deviceXML = hostdev._parse_device_params( libvirtconnection.get().nodeDeviceLookupByName( _NET_DEVICE).XMLDesc() ) self.assertEquals(_NET_DEVICE_PARSED, deviceXML)
def testParseNetDeviceParams(self): deviceXML = hostdev._parse_device_params(_NET_DEVICE) self.assertEquals(_NET_DEVICE_PARSED, deviceXML)
def testParseSRIOV_VFDeviceParams(self): deviceXML = hostdev._parse_device_params(_SRIOV_VF_XML) self.assertEquals(_SRIOV_VF_PARSED, deviceXML)
def testParseDeviceParams(self): deviceXML = hostdev._parse_device_params(ADDITIONAL_DEVICE) self.assertEquals(ADDITIONAL_DEVICE_PARSED, deviceXML)