summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul McMillan <Paul@McMillan.ws>2012-02-16 01:37:12 +0000
committerPaul McMillan <Paul@McMillan.ws>2012-02-16 01:37:12 +0000
commit06da2be00fb371a27e10ce37821643914c93adc6 (patch)
tree99b618997a066e6a3909296e2986e1e995248c8c
parentb9b3e9f0efe3fe9d5d976533ff2f13359825f5da (diff)
Fix broken test introduced by r17526.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/contrib/auth/tests/tokens.py5
1 files 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)