def authorize_quota_class_context(context, class_name):
    if is_user_context(context):
        if not context.quota_class:
            raise exception.NotAuthorized()
        elif context.quota_class != class_name:
            raise exception.NotAuthorized()
Return auth state.
dataset/ETHPy150Open openstack/rack/rack/context.py/authorize_quota_class_context--crossover with--dataset/ETHPy150Open google/simian/src/simian/auth/base.py/AuthBase.AuthState