Ejemplo n.º 1
0
def test_set_cheetah_average_speed(age, result):
    cheetah = Cheetah(age)
    assert cheetah.get_average_speed() == result
Ejemplo n.º 2
0
def test_cheetah_run(age, hours, result):
    cheetah = Cheetah(age)
    cheetah.run(hours)
    assert cheetah.get_saturation_level() == result
Ejemplo n.º 3
0
def test_cheetah_eat(age, food, result):
    cheetah = Cheetah(age)
    cheetah.eat(food)
    assert cheetah.get_saturation_level() == result