def testCommandExplicit(self):
    expected_cmd = "xl"
    hv = hv_xen.XenHypervisor(_cmd=constants.XEN_CMD_XL)
    self.assertEqual(hv._GetCommand(None), expected_cmd)
Make sure we don't allow overly long dates, causing a potential DoS.
dataset/ETHPy150Open ganeti/ganeti/test/py/ganeti.hypervisor.hv_xen_unittest.py/TestGetCommand.testCommandExplicit--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/contrib/auth/tests/tokens.py/TokenGeneratorTest.test_date_length