def testWithoutOldData(self): new = { constants.HT_XEN_PVM: { constants.HVST_MEMORY_TOTAL: 4096, }, } self.assertEqual(common.MergeAndVerifyHvState(new, None), new)
def testWithoutOpData(self): self.assertEqual(common.MergeAndVerifyHvState(None, NotImplemented), None)