예제 #1
0
 def test_calls_notify_for_subscribers(self):
     subscription = self.factory.create_alert_subscription()
     subscription.notify = MagicMock()
     notify_subscriptions(subscription.alert, Alert.OK_STATE)
     subscription.notify.assert_called_with(subscription.alert,
                                            subscription.alert.query_rel,
                                            subscription.user,
                                            Alert.OK_STATE, ANY, ANY)
예제 #2
0
 def test_calls_notify_for_subscribers(self):
     subscription = self.factory.create_alert_subscription()
     subscription.notify = MagicMock()
     notify_subscriptions(subscription.alert, Alert.OK_STATE)
     subscription.notify.assert_called_with(subscription.alert, subscription.alert.query_rel, subscription.user, Alert.OK_STATE, ANY, ANY)
예제 #3
0
 def test_calls_notify_for_subscribers(self):
     subscription = self.factory.create_alert_subscription()
     notify_subscriptions(subscription.alert, Alert.OK_STATE)