def test_values_bump(): func = ValuesFunction([0, 5, 10]) with pytest.raises(ValueError): func.bump(10)
def test_values_bump(): func = ValuesFunction([0, 5, 10]) assert func.bump(0) == 5