def test_recalculate_fifth():
    recalculate_quality(potato5)
    assert potato5.quality == 2
    recalculate_quality(cheese5)
def test_recalculate_fourth():
    recalculate_quality(potato4)
    assert potato4.quality == -0.5
    recalculate_quality(cheese4)
def test_recalculate_second():
    recalculate_quality(potato2)
    assert potato2.quality == 14.5
    recalculate_quality(cheese2)
    assert cheese2.quality == 18
def test_recalculate_third():
    recalculate_quality(potato3)
    assert potato3.quality == 3.5
    recalculate_quality(cheese3)
def test_recalculate_quality_first():
    recalculate_quality(potato1)
    assert potato1.quality == 7.5
    recalculate_quality(cheese1)
    assert cheese1.quality == 4