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)
def test_calls_notify_for_subscribers(self): subscription = self.factory.create_alert_subscription() notify_subscriptions(subscription.alert, Alert.OK_STATE)