MCPcopy Index your code
hub / github.com/davidaurelio/hashids-python / test_min_length

Method test_min_length

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95
HashidsClass · 0.90

Tested by

no test coverage detected