Beispiel #1
0
def test_set_cat_average_speed(age, result):
    cat = Cat(age)
    assert cat.get_average_speed() == result
Beispiel #2
0
def test_cat_run(age, hours, result):
    cat = Cat(age)
    cat.run(hours)
    assert cat.get_saturation_level() == result
Beispiel #3
0
def test_cat_eat(age, food, result):
    cat = Cat(age)
    cat.eat(food)
    assert cat.get_saturation_level() == result