Commits

James Bennett committed 837bcb7

Test the form class returned by the backend.

  • Participants
  • Parent commits 7c65d9d

Comments (0)

Files changed (1)

File registration/tests.py

 from django.core import mail
 from django.test import TestCase
 
+from registration.forms import RegistrationForm
 from registration.models import RegistrationProfile
 
 
         self.failUnless(self.backend.registration_allowed({}))
         settings.REGISTRATION_OPEN = False
         self.failIf(self.backend.registration_allowed({}))
+
+    def test_form_class(self):
+        """
+        Test that the default form class returned is
+        ``registration.forms.RegistrationForm``.
+        
+        """
+        self.failUnless(self.backend.get_form_class({}) is RegistrationForm)