Ejemplo n.º 1
0
def test_hyperspeed_real_sleep():
    hs = Speed()
    before = time.time()
    hs.sleep(1)
    after = time.time()
    assert after - before >= 1
Ejemplo n.º 2
0
def test_hyperspeed_real_time():
    hs = Speed()
    assert hs.time() <= time.time()
Ejemplo n.º 3
0
def test_hyperspeed_real_sleep():
    hs = Speed()
    before = time.time()
    hs.sleep(1)
    after = time.time()
    assert after - before >= 1
Ejemplo n.º 4
0
def test_hyperspeed_speedup():
    hs = Speed()
    assert hs.speedup == 1
Ejemplo n.º 5
0
def test_hyperspeed_real_time():
    hs = Speed()
    assert hs.time() <= time.time()