(self, file, path)
return file_contents.get('extends')
Extract the OIDs of a profile and adds them to "used_oid".\n
        The duplicated oid are also added to "duplicated" mapping. \n
        "duplicated" is a dictionary where the OIDs are the keys and
        the values are lists of tuples (name_of_profile,line)
Extract the OIDs of a profile and adds them to "used_oid".\n
        The duplicated oid are also added to "duplicated" mapping. \n
        "duplicated" is a dictionary where the OIDs are the keys and
        the values are lists of tuples (name_of_profile,line)
Extract the OIDs of a profile and adds them to used_oid . \ n The duplicated oid are also added to duplicated mapping . \ n duplicated is a dictionary where the OIDs are the keys and the values are lists of tuples ( name_of_profile line )
def verify_duplicate_oid_profile_file(self, file, path):
        # type: (str, list) -> list
        """
        Extract the OIDs of a profile and adds them to "used_oid".\n
        The duplicated oid are also added to "duplicated" mapping. \n
        "duplicated" is a dictionary where the OIDs are the keys and
        the values are lists of tuples (name_of_profile,line)
        """
        file_contents = find_profile_in_path(file, path)
        if not file_contents:
            self.fail("File contents returned None: " + file)
            return
        # print(path)
        if file_contents.get('metrics'):
            for metric in file_contents.get('metrics'):
                # Check if there are symbols metrics
                if metric.get('symbols'):
                    self.extract_oids_from_symbols(metric, file)
                # Check if there are symbol metrics
                if metric.get('symbol'):
                    self.extract_oid_from_symbol(metric, file)

        return file_contents.get('extends')
def verify_duplicate_oid_profile_file ( self , file , path ) : # type: (str, list) -> list file_contents = find_profile_in_path ( file , path ) if not file_contents : self . fail ( "File contents returned None: " + file ) return # print(path) if file_contents . get ( 'metrics' ) : for metric in file_contents . get ( 'metrics' ) : # Check if there are symbols metrics if metric . get ( 'symbols' ) : self . extract_oids_from_symbols ( metric , file ) # Check if there are symbol metrics if metric . get ( 'symbol' ) : self . extract_oid_from_symbol ( metric , file ) return file_contents . get ( 'extends' )