def test_allpositive(): val = Avg.absAvg([1, 2, 3, 4, 5]) assert val == 3
def test_input_none(): with pytest.raises(Exception): val = Avg.absAvg(None) assert False
def test_input_empty(): with pytest.raises(Exception): val = Avg.absAvg([]) assert False
def test_allnegative(): val = Avg.absAvg([-1, -2, -3, -4, -5]) assert val == 3