Fix broken test introduced by r17526.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Paul McMillan 2012-02-16 01:37:12 +00:00
parent b9b3e9f0ef
commit 06da2be00f
1 changed files with 3 additions and 2 deletions

View File

@ -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)