(self)
| 133 | assert h.decode('JOMh1') == (99, 25) |
| 134 | |
| 135 | def test_alphabet(self): |
| 136 | h = Hashids(alphabet='!"#%&\',-/0123456789:;<=>ABCDEFGHIJKLMNOPQRSTUVWXYZ_`abcdefghijklmnopqrstuvwxyz~') |
| 137 | assert h.decode('_nJUNTVU3') == (2839, 12, 32, 5) |
| 138 | assert h.decode('7xfYh2') == (1, 2, 3) |
| 139 | assert h.decode('Z6R>') == (23832,) |
| 140 | assert h.decode('AYyIB') == (99, 25) |
| 141 | |
| 142 | def test_min_length(self): |
| 143 | h = Hashids(min_length=25) |