Revision b666f213 test/py/ganeti.hypervisor.hv_xen_unittest.py

b/test/py/ganeti.hypervisor.hv_xen_unittest.py
383 383
    self.assertFalse(os.path.exists(autocfgfile))
384 384
    self.assertEqual(utils.ReadFile(cfgfile), "content")
385 385

  
386
  def testVerify(self):
387
    output = testutils.ReadTestData("xen-xm-info-4.0.1.txt")
388
    hv = self._GetHv(run_cmd=compat.partial(self._SuccessCommand,
389
                                            output))
390
    self.assertTrue(hv.Verify() is None)
391

  
392
  def testVerifyFailing(self):
393
    hv = self._GetHv(run_cmd=self._FailingCommand)
394
    self.assertTrue("failed:" in hv.Verify())
395

  
386 396

  
387 397
def _MakeTestClass(cls, cmd):
388 398
  """Makes a class for testing.

Also available in: Unified diff