def test_average_by_fails(self, inputs, error): with pytest.raises(error): ListOperations.average_by(inputs)
def test_average_by(self, inputs, function, result): assert ListOperations.average_by(sequence=inputs, function=function) == result