def METHOD_NAME(self):
    """Test the base class Attribute."""
    rc = create_resource_cls("attr_id", Attribute)
    r = rc("attr_id", 1)
    assert r.attr == 1
    r.attr = 2
    assert r.attr == 2
    # Check we do pass the write ID
    r.attr_id = "dummy"
    with pytest.raises(ValueError):
        r.attr
    with pytest.raises(ValueError):
        r.attr = 2
    # Un-readable attribute
    rc = create_resource_cls("attr_id", Attribute, read=False)
    r = rc("attr_id", 1)
    with pytest.raises(AttributeError):
        r.attr
    # Un-writable attribute
    rc = create_resource_cls("attr_id", Attribute, write=False)
    r = rc("attr_id", 1)
    with pytest.raises(AttributeError):
        r.attr = 1