def test_hyperspeed_real_sleep(): hs = Speed() before = time.time() hs.sleep(1) after = time.time() assert after - before >= 1
def test_hyperspeed_real_time(): hs = Speed() assert hs.time() <= time.time()
def test_hyperspeed_speedup(): hs = Speed() assert hs.speedup == 1