Esempio n. 1
0
def audit_sms():
    discrepancies = audit_incoming_sms()
    discrepancies.extend(audit_outgoing_sms())
    if discrepancies:
        # notify interested parties
        send_notifications(subscription_type=Subscription.DISCREPANCIES,
                           discrepancies=discrepancies)
Esempio n. 2
0
 def test_notifications_sent(self):
     send_notifications(subscription_type=models.Subscription.DISCREPANCIES)
     self.assertEqual(len(mail.outbox), 10)