Author: PaulM
Date: 2012-02-15 17:37:12 -0800 (Wed, 15 Feb 2012)
New Revision: 17527

Modified:
   django/trunk/django/contrib/auth/tests/tokens.py
Log:
Fix broken test introduced by r17526.


Modified: django/trunk/django/contrib/auth/tests/tokens.py
===================================================================
--- django/trunk/django/contrib/auth/tests/tokens.py    2012-02-16 01:10:21 UTC 
(rev 17526)
+++ django/trunk/django/contrib/auth/tests/tokens.py    2012-02-16 01:37:12 UTC 
(rev 17527)
@@ -59,5 +59,6 @@
         p0 = PasswordResetTokenGenerator()
 
         # This will put a 14-digit base36 timestamp into the token, which is 
too large.
-        tk1 = p0._make_token_with_timestamp(user, 175455491841851871349)
-        self.assertFalse(p0.check_token(user, tk1))
+        self.assertRaises(ValueError,
+                          p0._make_token_with_timestamp,
+                          user, 175455491841851871349)

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to