def METHOD_NAME(
    self, invoke_cli, admin_user, db_session
):
    admin_user.authority = "partner.org"
    result = invoke_cli(
        user_cli.admin, ["--off", "--authority", "partner.org", admin_user.username]
    )
    assert not result.exit_code
    user = db_session.query(User).get(admin_user.id)
    assert not user.admin