def test_average_2(): with pytest.raises(ValueError): assert algo.average(tab_negative)
def test_average_1(): assert algo.average(tab_positive) == 3