def testMissingNodeInfo(self): instance_list = self._FakeXmList(True) result = hv_xen._MergeInstanceInfo({}, instance_list) self.assertEqual(result, { "memory_dom0": 4096, "cpu_dom0": 7, })
def testEmpty(self): self.assertEqual(hv_xen._MergeInstanceInfo({}, []), {})
def testMissingNodeInfo(self): result = hv_xen._MergeInstanceInfo({}, self._FakeXmList) self.assertEqual(result, { "memory_dom0": 4096, "dom0_cpus": 7, })