(self)
| 61 | assert h.encode(99, 25) == 'k91nqP3RBe3lKfDaLJrvy8XjV' |
| 62 | |
| 63 | def test_all_parameters(self): |
| 64 | h = Hashids('arbitrary salt', 16, 'abcdefghijklmnopqrstuvwxyz') |
| 65 | assert h.encode(7452, 2967, 21401) == 'wygqxeunkatjgkrw' |
| 66 | assert h.encode(1, 2, 3) == 'pnovxlaxuriowydb' |
| 67 | assert h.encode(60125) == 'jkbgxljrjxmlaonp' |
| 68 | assert h.encode(99, 25) == 'erdjpwrgouoxlvbx' |
| 69 | |
| 70 | def test_alphabet_without_standard_separators(self): |
| 71 | h = Hashids(alphabet='abdegjklmnopqrvwxyzABDEGJKLMNOPQRVWXYZ1234567890') |