Commits

James Bennett committed 637cb20

Minor style and docstring/typo tweaks.

  • Participants
  • Parent commits 61891f4

Comments (0)

Files changed (1)

File registration/tests/views.py

 
     def tearDown(self):
         """
-        Retore the original value of ``REGISTRATION_BACKEND``.
+        Restore the original value of ``REGISTRATION_BACKEND``.
 
         """
         settings.REGISTRATION_BACKEND = self.old_backend
 
     def test_registration_template_name(self):
         """
-        Passing a custom ``template_name`` to the ``register`` view
-        will result in that template being used.
-        
+        Passing ``template_name`` to the ``register`` view will result
+        in that template being used.
+
         """
         response = self.client.get(reverse('registration_test_register_template_name'))
         self.assertTemplateUsed(response,
         """
         Passing ``extra_context`` to the ``register`` view will
         correctly populate the context.
-        
+
         """
         response = self.client.get(reverse('registration_test_register_extra_context'))
         self.assertEqual(response.context['foo'], 'bar')
         """
         Passing ``disallowed_url`` to the ``register`` view will
         result in a redirect to that URL when registration is closed.
-        
+
         """
         old_allowed = getattr(settings, 'REGISTRATION_OPEN', True)
         settings.REGISTRATION_OPEN = False