MCPcopy Create free account
hub / github.com/davidaurelio/hashids-python / test_min_length

Method test_min_length

test/test_hashids.py:56–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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')

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.95
HashidsClass · 0.90

Tested by

no test coverage detected