Commits

James Bennett committed c9073d1

Test the post-registration redirect URL.

  • Participants
  • Parent commits 837bcb7

Comments (0)

Files changed (1)

registration/tests.py

 import datetime
 
 from django.conf import settings
+from django.contrib.auth.models import User
 from django.core import mail
 from django.test import TestCase
 
         
         """
         self.failUnless(self.backend.get_form_class({}) is RegistrationForm)
+
+    def test_post_registration_redirect(self):
+        """
+        Test that the default post-registration redirect is the named
+        pattern ``registration_complete``.
+        
+        """
+        self.assertEqual(self.backend.post_registration_redirect({}, User()),
+                         'registration_complete')