コード例 #1
0
    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
        })
コード例 #2
0
ファイル: test_anomaly.py プロジェクト: zhou0/GlobaLeaks
    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
        })
コード例 #3
0
ファイル: test_anomaly.py プロジェクト: Taipo/GlobaLeaks
    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
            }
        )