mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Use Python's changed comparisons, which makes this a bit more readable.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17526 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -119,6 +119,6 @@ class TestUtilsHttp(unittest.TestCase):
|
||||
self.assertRaises(TypeError, http.int_to_base36, 3.141)
|
||||
|
||||
# more explicit output testing
|
||||
for n, b36 in [(0,'0'), (1,'1'), (42,'16'), (818469960,'django')]:
|
||||
for n, b36 in [(0, '0'), (1, '1'), (42, '16'), (818469960, 'django')]:
|
||||
self.assertEqual(http.int_to_base36(n), b36)
|
||||
self.assertEqual(http.base36_to_int(b36), n)
|
||||
|
||||
Reference in New Issue
Block a user