コード例 #1
0
 def testWithoutOldData(self):
   new = {
     constants.DT_PLAIN: {
       "xenvg": {
         constants.DS_DISK_RESERVED: 1024,
         },
       },
     }
   self.assertEqual(common.MergeAndVerifyDiskState(new, None), new)
コード例 #2
0
 def testWithoutOpData(self):
   self.assertEqual(common.MergeAndVerifyDiskState(None, NotImplemented),
                    None)