def TestDelay(duration):
  if duration < 0:
    return False, "Invalid sleep duration"
  time.sleep(duration)
  return True, None
Sleep for a fixed amount of time.
dataset/ETHPy150Open ganeti/ganeti/lib/utils/wrapper.py/TestDelay