Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)