예제 #1
0
    def test_send_mass_mail(self):
        from froide.account.management.commands.send_mass_mail import Command

        user_count = User.objects.all().count()
        mail.outbox = []
        command = Command()
        subject, content = 'Test', 'Testing-Content'
        list(command.send_mail(subject, content))
        self.assertEqual(len(mail.outbox), user_count)
예제 #2
0
파일: tests.py 프로젝트: fin/froide
    def test_send_mass_mail(self):
        from froide.account.management.commands.send_mass_mail import Command

        user_count = User.objects.all().count()
        mail.outbox = []
        command = Command()
        subject, content = 'Test', 'Testing-Content'
        list(command.send_mail(subject, content))
        self.assertEqual(len(mail.outbox), user_count)