Пример #1
0
def test_values_bump():
    func = ValuesFunction([0, 5, 10])
    with pytest.raises(ValueError):
        func.bump(10)
Пример #2
0
def test_values_bump():
    func = ValuesFunction([0, 5, 10])
    assert func.bump(0) == 5