def testCommandExplicit(self):
    expected_cmd = "xl"
    hv = hv_xen.XenHypervisor(_cmd=constants.XEN_CMD_XL)
    self.assertEqual(hv._GetCommand(None), expected_cmd)
Test the case when the command is given as class parameter explicitly.
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.hypervisor.hv_xen_unittest.py/TestGetCommand.testCommandExplicit