diff options
author | Hasan Ramezani <hasan.r67@gmail.com> | 2021-05-05 23:28:08 +0200 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2021-05-07 11:57:40 +0200 |
commit | 028f10fac651292edf8d50e013b16a52862e4c08 (patch) | |
tree | dacf9d5fcd6e337a213bbd2a942a7894768955e6 /tests/signing | |
parent | c4ee3b208a2c95a5102b5e4fa789b10f8ee29b84 (diff) | |
download | django-028f10fac651292edf8d50e013b16a52862e4c08.tar.gz |
Fixed #32712 -- Deprecated django.utils.baseconv module.
Diffstat (limited to 'tests/signing')
-rw-r--r-- | tests/signing/tests.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/signing/tests.py b/tests/signing/tests.py index 4b9cec7d25..1bd7277bc6 100644 --- a/tests/signing/tests.py +++ b/tests/signing/tests.py @@ -195,3 +195,10 @@ class TestTimestampSigner(SimpleTestCase): self.assertEqual(signer.unsign(ts, max_age=datetime.timedelta(seconds=11)), value) with self.assertRaises(signing.SignatureExpired): signer.unsign(ts, max_age=10) + + +class TestBase62(SimpleTestCase): + def test_base62(self): + tests = [-10 ** 10, 10 ** 10, 1620378259, *range(-100, 100)] + for i in tests: + self.assertEqual(i, signing.b62_decode(signing.b62_encode(i))) |