def test_convert_events_no_events(self): self.assertSetEqual(convert_events([]), set())
def test_convert_events_some_invalid_name(self): with self.assertRaises(UnknownEvent): convert_events(('Common Workflow Signal', WalkoffEvent.SchedulerStart, 'Invalid'))
def test_convert_events_multiple_mixed_events(self): self.assertSetEqual( convert_events( ('Common Workflow Signal', WalkoffEvent.SchedulerStart)), {WalkoffEvent.CommonWorkflowSignal, WalkoffEvent.SchedulerStart})
def test_convert_events_one_invalid_name(self): with self.assertRaises(UnknownEvent): convert_events(['Invalid'])
def test_convert_events_one_event(self): self.assertSetEqual(convert_events(WalkoffEvent.CommonWorkflowSignal), {WalkoffEvent.CommonWorkflowSignal})