def test_all_events_are_controller_single_controller(self):
     self.assertTrue(
         InterfaceEventDispatcher._all_events_are_controller(
             {WalkoffEvent.SchedulerStart}))
 def test_all_events_are_controller_single_non_controller(self):
     self.assertFalse(
         InterfaceEventDispatcher._all_events_are_controller(
             {WalkoffEvent.ActionStarted}))
 def test_all_events_are_controller_multiple_non_controller(self):
     self.assertFalse(
         InterfaceEventDispatcher._all_events_are_controller({
             WalkoffEvent.ActionStarted, WalkoffEvent.ActionExecutionError
         }))
 def test_all_events_are_controller_multiple_controller(self):
     self.assertTrue(
         InterfaceEventDispatcher._all_events_are_controller({
             WalkoffEvent.SchedulerStart, WalkoffEvent.SchedulerJobExecuted
         }))
 def test_all_events_are_controller_mixed_events(self):
     with self.assertRaises(ValueError):
         InterfaceEventDispatcher._all_events_are_controller(
             {WalkoffEvent.WorkflowShutdown, WalkoffEvent.SchedulerStart})
 def test_all_events_are_controller_mixed_events(self):
     with self.assertRaises(ValueError):
         InterfaceEventDispatcher._all_events_are_controller({WalkoffEvent.WorkflowShutdown,
                                                              WalkoffEvent.SchedulerStart})
 def test_all_events_are_controller_multiple_controller(self):
     self.assertTrue(InterfaceEventDispatcher._all_events_are_controller({WalkoffEvent.SchedulerStart,
                                                                          WalkoffEvent.SchedulerJobExecuted}))
 def test_all_events_are_controller_single_controller(self):
     self.assertTrue(InterfaceEventDispatcher._all_events_are_controller({WalkoffEvent.SchedulerStart}))
 def test_all_events_are_controller_multiple_non_controller(self):
     self.assertFalse(InterfaceEventDispatcher._all_events_are_controller({WalkoffEvent.ActionStarted,
                                                                           WalkoffEvent.ActionExecutionError}))
 def test_all_events_are_controller_single_non_controller(self):
     self.assertFalse(InterfaceEventDispatcher._all_events_are_controller({WalkoffEvent.ActionStarted}))