#NEWLINE# def verify_object_permission( self , name ) : #NEWLINE# #INDENT# "\n        Verify that the object gid that was specified in the credential\n        allows permission to the object 'name'. This is done by a simple\n        prefix test. For example, an object_gid for plc.arizona would \n        match the objects plc.arizona.slice1 and plc.arizona.\n    \n        @param name human readable name to test  \n        " #NEWLINE# object_hrn = self . object_gid . get_hrn ( ) #NEWLINE# if ( object_hrn == name ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if name . startswith ( ( object_hrn + '.' ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# raise PermissionError ( name )