#NEWLINE# def _valid_method_call_check_resource( name , method ) : #NEWLINE# #INDENT# if ( name not in QUOTAS ) : #NEWLINE# #INDENT# raise exception . InvalidQuotaMethodUsage ( method = method , res = name ) #NEWLINE# #UNINDENT# res = QUOTAS [ name ] #NEWLINE# if ( res . valid_method != method ) : #NEWLINE# #INDENT# raise exception . InvalidQuotaMethodUsage ( method = method , res = name )