def test_notification_event(self): for l in [['All', 'InProgress', 'Success', 'TimedOut', 'Cancelled', 'Failed'], ['InProgress', 'TimedOut']]: notification_event(l) for l in [['', 'timeout', '%'], ['Inprogress', '@ll']]: with self.assertRaises(ValueError): notification_event(l)
def test_notification_event(self): for item in [ ["All", "InProgress", "Success", "TimedOut", "Cancelled", "Failed"], ["InProgress", "TimedOut"], ]: notification_event(item) for item in [["", "timeout", "%"], ["Inprogress", "@ll"]]: with self.assertRaises(ValueError): notification_event(item)