mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #28909 -- Simplifed code using unpacking generalizations.
This commit is contained in:
committed by
Tim Graham
parent
4fc8fb7dda
commit
8ef8bc0f64
@@ -8,7 +8,7 @@ from django.utils.baseconv import (
|
||||
class TestBaseConv(TestCase):
|
||||
|
||||
def test_baseconv(self):
|
||||
nums = [-10 ** 10, 10 ** 10] + list(range(-100, 100))
|
||||
nums = [-10 ** 10, 10 ** 10, *range(-100, 100)]
|
||||
for converter in [base2, base16, base36, base56, base62, base64]:
|
||||
for i in nums:
|
||||
self.assertEqual(i, converter.decode(converter.encode(i)))
|
||||
|
||||
Reference in New Issue
Block a user