def METHOD_NAME(self):
    """Test EnumAttribute"""
    @enum.unique
    class E(enum.IntEnum):
        a = 1
        b = 2
    rc = create_resource_cls("attr_id", EnumAttribute, attrs={"enum_type": E})
    r = rc("attr_id", 1)
    assert r.attr == E.a
    r.attr = E.b
    assert r.attr == E.b
    assert r.attr_value == 2
    with pytest.raises(ValueError):
        r.attr = 3
    with pytest.raises(ValueError):
        r.attr = ""