コード例 #1
0
ファイル: test_models.py プロジェクト: KryDos/zamboni
 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)
コード例 #2
0
ファイル: test_models.py プロジェクト: KryDos/zamboni
 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"*****@*****.**"]])
コード例 #3
0
 def test_notifications(self):
     send_notifications(Version, self.version, created=True)
     eq_(len(mail.outbox), 2)
     emails = sorted([o.to for o in mail.outbox])
     eq_(emails, [[u'*****@*****.**'], [u'*****@*****.**']])
コード例 #4
0
 def test_notifications_clean(self):
     send_notifications(Version, self.version, created=True)
     eq_(EditorSubscription.objects.count(), 0)
     mail.outbox = []
     send_notifications(Version, self.version, created=True)
     eq_(len(mail.outbox), 0)
コード例 #5
0
ファイル: test_models.py プロジェクト: LittleForker/zamboni
 def test_notifications(self):
     send_notifications(Version, self.version, created=True)
     eq_(len(mail.outbox), 2)
     emails = sorted([o.to for o in mail.outbox])
     eq_(emails, [[u'*****@*****.**'], [u'*****@*****.**']])