コード例 #1
0
def test_average_2():
    with pytest.raises(ValueError):
        assert algo.average(tab_negative)
コード例 #2
0
def test_average_1():
    assert algo.average(tab_positive) == 3