Skip to content
Snippets Groups Projects
test_utils.py 422 B
Newer Older
  • Learn to ignore specific revisions
  • from django.core import mail
    
    Todd Dembrey's avatar
    Todd Dembrey committed
    from django.test import TestCase, override_settings
    
    
    from opentech.apply.users.tests.factories import UserFactory
    
    from ..utils import send_activation_email
    
    
    
    Todd Dembrey's avatar
    Todd Dembrey committed
    @override_settings(ROOT_URLCONF='opentech.apply.urls')
    
    class TestActivationEmail(TestCase):
        def test_activation_email_includes_link(self):
            send_activation_email(UserFactory())
            self.assertEqual(len(mail.outbox), 1)