(self)
| 140 | assert h.decode('AYyIB') == (99, 25) |
| 141 | |
| 142 | def test_min_length(self): |
| 143 | h = Hashids(min_length=25) |
| 144 | assert h.decode('pO3K69b86jzc6krI416enr2B5') == (7452, 2967, 21401) |
| 145 | assert h.decode('gyOwl4B97bo2fXhVaDR0Znjrq') == (1, 2, 3) |
| 146 | assert h.decode('Nz7x3VXyMYerRmWeOBQn6LlRG') == (6097,) |
| 147 | assert h.decode('k91nqP3RBe3lKfDaLJrvy8XjV') == (99, 25) |
| 148 | |
| 149 | def test_all_parameters(self): |
| 150 | h = Hashids('arbitrary salt', 16, 'abcdefghijklmnopqrstuvwxyz') |