Commits

James Bennett committed 0bd63eb

Improve test coverage of the simple backend.

  • Participants
  • Parent commits 12da524

Comments (0)

Files changed (1)

registration/tests/backends.py

         self.assertEqual(len(received_signals), 1)
         self.assertEqual(received_signals, [signals.user_registered])
 
+    def test_activation(self):
+        """
+        Test that activating against this backend is an error.
+        
+        """
+        self.assertRaises(NotImplementedError, self.backend.activate,
+                          request=_mock_request())
+
+    def test_post_activation_redirect(self):
+        """
+        Test that asking for a post-activation redirect from this
+        backend is an error.
+        
+        """
+        self.assertRaises(NotImplementedError, self.backend.post_activation_redirect,
+                          request=_mock_request(), user=User())