From 06da2be00fb371a27e10ce37821643914c93adc6 Mon Sep 17 00:00:00 2001 From: Paul McMillan Date: Thu, 16 Feb 2012 01:37:12 +0000 Subject: [PATCH] Fix broken test introduced by r17526. git-svn-id: http://code.djangoproject.com/svn/django/trunk@17527 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/contrib/auth/tests/tokens.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/django/contrib/auth/tests/tokens.py b/django/contrib/auth/tests/tokens.py index f7fc32e223..beccfc5d07 100644 --- a/django/contrib/auth/tests/tokens.py +++ b/django/contrib/auth/tests/tokens.py @@ -59,5 +59,6 @@ class TokenGeneratorTest(TestCase): 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)