Commits

James Bennett committed 42177e5

Test the activation key reset.

  • Participants
  • Parent commits ca11b8e

Comments (0)

Files changed (1)

File registration/tests.py

         activated = self.backend.activate({}, valid_profile.activation_key)
         self.assertEqual(activated.username, valid_user.username)
         self.failUnless(activated.is_active)
+
+        # Fetch the profile again to verify its activation key has been reset.
+        valid_profile = RegistrationProfile.objects.get(user=valid_user)
+        self.assertEqual(valid_profile.activation_key, RegistrationProfile.ACTIVATED)