def delete_resources_on_service_clients(logical_line, physical_line, filename, line_number, lines):
 if (not _common_service_clients_check(logical_line, physical_line, filename, 'ignored_list_T111.txt')):
  return
 for line in lines[line_number:]:
  if (METHOD.match(line) or CLASS.match(line)):
   return
  if (('self.delete(' not in line) and ('self.delete_resource(' not in line)):
   continue
  if METHOD_DELETE_RESOURCE.match(logical_line):
   return
  msg = 'T111: [DELETE /resources/<id>] methods should be delete_<resource name>'
  (yield (0, msg))

def delete_resources_on_service_clients ( logical_line , physical_line , filename , line_number , lines ) : if ( not _common_service_clients_check ( logical_line , physical_line , filename , 'ignored_list_T111.txt' ) ) : return for line in lines [ line_number : ] : if ( METHOD . match ( line ) or CLASS . match ( line ) ) : return if ( ( 'self.delete(' not in line ) and ( 'self.delete_resource(' not in line ) ) : continue if METHOD_DELETE_RESOURCE . match ( logical_line ) : return msg = 'T111: [DELETE /resources/<id>] methods should be delete_<resource name>' ( yield ( 0 , msg ) )
check that service client names of delete should be consistent t111 .