Exemple #1
0
def test_remove_missing():
    p = Parameter("Z", [VAL_1, VAL_2, VAL_3, VAL_4])

    error_message = re.escape(f"list.remove(x): x not in list")
    with pytest.raises(ValueError, match=error_message):
        p.remove(NEW_VAL)
Exemple #2
0
def test_remove():
    p = Parameter("Z", [VAL_1, VAL_2, VAL_3, VAL_4])

    p.remove(VAL_3)

    assert p.values == [VAL_1, VAL_2, VAL_4]