Exemplo n.º 1
0
 def test_notifications_clean(self):
     send_notifications(Version, self.version)
     assert EditorSubscription.objects.count() == 0
     mail.outbox = []
     send_notifications(Version, self.version)
     assert len(mail.outbox) == 0
Exemplo n.º 2
0
 def test_notifications_clean(self):
     send_notifications(Version, self.version)
     assert EditorSubscription.objects.count() == 0
     mail.outbox = []
     send_notifications(Version, self.version)
     assert len(mail.outbox) == 0
Exemplo n.º 3
0
 def test_notifications(self):
     send_notifications(sender=self.version)
     assert len(mail.outbox) == 2
     emails = sorted([o.to for o in mail.outbox])
     assert emails == [[u'*****@*****.**'], [u'*****@*****.**']]
Exemplo n.º 4
0
 def test_notifications(self):
     send_notifications(sender=self.version)
     assert len(mail.outbox) == 2
     emails = sorted([o.to for o in mail.outbox])
     assert emails == [[u'*****@*****.**'], [u'*****@*****.**']]
Exemplo n.º 5
0
 def test_notifications_clean(self):
     send_notifications(Version, self.version)
     eq_(EditorSubscription.objects.count(), 0)
     mail.outbox = []
     send_notifications(Version, self.version)
     eq_(len(mail.outbox), 0)
Exemplo n.º 6
0
 def test_notifications(self):
     send_notifications(sender=self.version)
     eq_(len(mail.outbox), 2)
     emails = sorted([o.to for o in mail.outbox])
     eq_(emails, [[u'*****@*****.**'], [u'*****@*****.**']])
Exemplo n.º 7
0
 def test_notifications_clean(self):
     send_notifications(Version, self.version)
     eq_(EditorSubscription.objects.count(), 0)
     mail.outbox = []
     send_notifications(Version, self.version)
     eq_(len(mail.outbox), 0)
Exemplo n.º 8
0
 def test_notifications(self):
     send_notifications(sender=self.version)
     eq_(len(mail.outbox), 2)
     emails = sorted([o.to for o in mail.outbox])
     eq_(emails, [[u'*****@*****.**'], [u'*****@*****.**']])