(self)
| 54 | assert h.encode(99, 25) == 'AAABBBAAHBBAAB' |
| 55 | |
| 56 | def test_min_length(self): |
| 57 | h = Hashids(min_length=25) |
| 58 | assert h.encode(7452, 2967, 21401) == 'pO3K69b86jzc6krI416enr2B5' |
| 59 | assert h.encode(1, 2, 3) == 'gyOwl4B97bo2fXhVaDR0Znjrq' |
| 60 | assert h.encode(6097) == 'Nz7x3VXyMYerRmWeOBQn6LlRG' |
| 61 | assert h.encode(99, 25) == 'k91nqP3RBe3lKfDaLJrvy8XjV' |
| 62 | |
| 63 | def test_all_parameters(self): |
| 64 | h = Hashids('arbitrary salt', 16, 'abcdefghijklmnopqrstuvwxyz') |