(self)
| 47 | assert h.encode(99, 25) == 'AYyIB' |
| 48 | |
| 49 | def test_short_alphabet(self): |
| 50 | h = Hashids(alphabet='ABcfhistuCFHISTU') |
| 51 | assert h.encode(2839, 12, 32, 5) == 'AABAABBBABAAAuBBAAUABBBBBCBAB' |
| 52 | assert h.encode(1, 2, 3) == 'AAhBAiAA' |
| 53 | assert h.encode(23832) == 'AABAAABABBBAABBB' |
| 54 | assert h.encode(99, 25) == 'AAABBBAAHBBAAB' |
| 55 | |
| 56 | def test_min_length(self): |
| 57 | h = Hashids(min_length=25) |