def METHOD_NAME(self):
    before = time.time()
    with raises(CommandTimedOut) as info:
        run("sleep 5", timeout=0.5)
    after = time.time()
    # Fudge real time check a bit, <=0.5 typically fails due to
    # overhead etc. May need raising further to avoid races? Meh.
    assert (after - before) <= 0.75
    # Sanity checks of the exception obj
    assert info.value.timeout == 0.5
    assert info.value.result.command == "sleep 5"