Commits

James Bennett committed 1dbd26e

Add some comments to make this a bit easier to follow.

  • Participants
  • Parent commits 9a11cf3

Comments (0)

Files changed (1)

registration/tests.py

         ``False`` otherwise.
         
         """
+        # Unexpired user returns False.
         self.failIf(RegistrationProfile.objects.get(user=self.sample_user).activation_key_expired())
+
+        # Expired use returns True.
         self.failUnless(RegistrationProfile.objects.get(user=self.expired_user).activation_key_expired())
+
+        # Activated user returns True.
         RegistrationProfile.objects.activate_user(RegistrationProfile.objects.get(user=self.sample_user).activation_key)
         self.failUnless(RegistrationProfile.objects.get(user=self.sample_user).activation_key_expired())