Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix broken test introduced by r17526.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17527 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 06da2be00fb371a27e10ce37821643914c93adc6 1 parent b9b3e9f
Paul McMillan PaulMcMillan authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 django/contrib/auth/tests/tokens.py
5 django/contrib/auth/tests/tokens.py
View
@@ -59,5 +59,6 @@ def test_date_length(self):
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)
Please sign in to comment.
Something went wrong with that request. Please try again.