def METHOD_NAME(super_admin_token, user, public_group):
    token_name = str(uuid.uuid4())
    token_id = create_token(ACLs=[], user_id=user.id, name=token_name)
    assert Token.query.get(token_id)
    # end the transaction on the test-side
    DBSession().commit()
    status, data = api('DELETE', f'user/{user.id}', token=super_admin_token)
    assert status == 200
    status, data = api('GET', f'user/{user.id}', token=super_admin_token)
    assert status == 400
    assert not Token.query.get(token_id)