示例#1
0
def test_cheetah_run(age, hours, result):
    cheetah = Cheetah(age)
    cheetah.run(hours)
    assert cheetah.get_saturation_level() == result
示例#2
0
def test_cheetah_eat(age, food, result):
    cheetah = Cheetah(age)
    cheetah.eat(food)
    assert cheetah.get_saturation_level() == result