def test_get_alert_schedule_instances_for_schedule(self):
     self.assertItemsEqual(
         get_alert_schedule_instances_for_schedule(
             AlertSchedule(schedule_id=self.schedule_id1)),
         [self.alert_instance2_p2, self.alert_instance3_p1])
Esempio n. 2
0
 def test_get_alert_schedule_instances_for_schedule(self):
     self.assertEqual(
         set(
             get_alert_schedule_instances_for_schedule(
                 AlertSchedule(schedule_id=self.schedule_id1))),
         set([self.alert_instance2, self.alert_instance3]))