def get_procname( self, event: DictEvent, ) -> str: """ Get procname. :param event: the event :return: the procname of the event """ return get_procname(event)
def assertProcessNamesExist( # noqa: N802 self, names: List[str], ) -> None: """ Check that the given processes exist. :param names: the node names to look for """ procnames = [get_procname(e) for e in self._events] for name in names: # Procnames have a max length of 15 name_trimmed = name[:15] self.assertTrue(name_trimmed in procnames, 'node name not found in tracepoints')