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