def test_time_passed_20_seconds(): test = Animal() time.sleep(20) test.time_passed() assert (test.health == 3) assert (test.hunger == 2)
def test_time_passed_20_seconds(): test = Animal() time.sleep(20) test.time_passed() assert test.health == 3 assert test.hunger == 2
def test_time_passed_10_seconds(): test = Animal() time.sleep(10) test.time_passed() assert (test.health == 4) assert (test.hunger == 1)
def test_time_passed_10_seconds(): test = Animal() time.sleep(10) test.time_passed() assert test.health == 4 assert test.hunger == 1