Commits

James Bennett committed e3efe02

Add a unit test for the email-disabling feature.

  • Participants
  • Parent commits 1637307

Comments (0)

Files changed (1)

File registration/tests.py

         """
         self.assertEqual(len(mail.outbox), 2)
 
+    def test_activation_email_disable(self):
+        """
+        Test that activation email can be disabled.
+        
+        """
+        RegistrationProfile.objects.create_inactive_user(username='noemail',
+                                                         password='foo',
+                                                         email='nobody@example.com',
+                                                         send_email=False)
+        self.assertEqual(len(mail.outbox), 2)
+
     def test_activation(self):
         """
         Test that user activation actually activates the user and