def METHOD_NAME(self):
    """Test ValuesAttribute"""
    rc = create_resource_cls("attr_id", ValuesAttribute, attrs={"values": [10, 20]})
    r = rc("attr_id", 1)
    r.attr = 10
    assert r.attr_value == 10
    with pytest.raises(ValueError) as cm:
        r.attr = 3
    assert "invalid value" in str(cm.exconly())