Пример #1
0
    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)
Пример #2
0
class TestEventChecker_or3(TestEventCheckerBase, TestCase):
    checker = OrTraceEventChecker.from_events(['arthur', 'lancelot'])
    expected_success = False
Пример #3
0
class TestEventChecker_or2(TestEventCheckerBase, TestCase):
    checker = OrTraceEventChecker.from_events(['foo', 'lancelot'])
Пример #4
0
class TestEventChecker_or1(TestEventCheckerBase, TestCase):
    checker = OrTraceEventChecker.from_events(['foo', 'bar'])
Пример #5
0
class TestEventChecker_or2(TestEventCheckerBase):
    __test__ = True

    checker = OrTraceEventChecker.from_events(['foo', 'lancelot'])
Пример #6
0
class TestEventChecker_or1(TestEventCheckerBase):
    __test__ = True

    checker = OrTraceEventChecker.from_events(['foo', 'bar'])