def _df_either_event(self, events): missing = [] for event in events: try: return self._df_uniformized_signal(event) except MissingTraceEventError as e: missing.append(e.missing_events) missing = OrTraceEventChecker.from_events(missing) raise MissingTraceEventError(missing, self.trace.available_events)
class TestEventChecker_or3(TestEventCheckerBase, TestCase): checker = OrTraceEventChecker.from_events(['arthur', 'lancelot']) expected_success = False
class TestEventChecker_or2(TestEventCheckerBase, TestCase): checker = OrTraceEventChecker.from_events(['foo', 'lancelot'])
class TestEventChecker_or1(TestEventCheckerBase, TestCase): checker = OrTraceEventChecker.from_events(['foo', 'bar'])
class TestEventChecker_or2(TestEventCheckerBase): __test__ = True checker = OrTraceEventChecker.from_events(['foo', 'lancelot'])
class TestEventChecker_or1(TestEventCheckerBase): __test__ = True checker = OrTraceEventChecker.from_events(['foo', 'bar'])