Beispiel #1
0
 def test_convert_events_no_events(self):
     self.assertSetEqual(convert_events([]), set())
Beispiel #2
0
 def test_convert_events_some_invalid_name(self):
     with self.assertRaises(UnknownEvent):
         convert_events(('Common Workflow Signal',
                         WalkoffEvent.SchedulerStart, 'Invalid'))
Beispiel #3
0
 def test_convert_events_multiple_mixed_events(self):
     self.assertSetEqual(
         convert_events(
             ('Common Workflow Signal', WalkoffEvent.SchedulerStart)),
         {WalkoffEvent.CommonWorkflowSignal, WalkoffEvent.SchedulerStart})
Beispiel #4
0
 def test_convert_events_one_invalid_name(self):
     with self.assertRaises(UnknownEvent):
         convert_events(['Invalid'])
Beispiel #5
0
 def test_convert_events_one_event(self):
     self.assertSetEqual(convert_events(WalkoffEvent.CommonWorkflowSignal),
                         {WalkoffEvent.CommonWorkflowSignal})