def METHOD_NAME(gl, user, GPG_KEY):
    gkey = user.gpgkeys.create({"key": GPG_KEY})
    assert gkey in user.gpgkeys.list()
    # Seems broken on the gitlab side
    # gkey = user.gpgkeys.get(gkey.id)
    gkey.delete()
    assert gkey not in user.gpgkeys.list()