def METHOD_NAME(gl, user):
    attrs = user.customattributes.list()
    assert not attrs
    attr = user.customattributes.set("key", "value1")
    assert user in gl.users.list(custom_attributes={"key": "value1"})
    assert attr.key == "key"
    assert attr.value == "value1"
    assert attr in user.customattributes.list()
    attr = user.customattributes.set("key", "value2")
    attr = user.customattributes.get("key")
    assert attr.value == "value2"
    assert attr in user.customattributes.list()
    attr.delete()
    assert attr not in user.customattributes.list()