def test_generate_admin_alert_mail(self): # Remind, these two has to be done to get an event matrix meaningful pollute_events_for_testing() activity_level = yield Alarm.compute_activity_level() x = yield Alarm.generate_admin_alert_mail(event_matrix={ 'wb_comments': 100, 'noise': 12345 })
def test_generate_admin_alert_mail(self): # Remind, these two has to be done to get an event matrix meaningful self.pollute_events() activity_level = yield Alarm.compute_activity_level() self.assertEqual(activity_level, 2) yield Alarm.generate_admin_alert_mail(event_matrix={ 'wb_comments': 100, 'noise': 12345 })
def test_generate_admin_alert_mail(self): # Remind, these two has to be done to get an event matrix meaningful pollute_events_for_testing() activity_level = yield Alarm.compute_activity_level() x = yield Alarm.generate_admin_alert_mail( event_matrix = { 'wb_comments': 100, 'noise': 12345 } )