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

Method test_alphabet

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

Source from the content-addressed store, hash-verified

133 assert h.decode('JOMh1') == (99, 25)
134
135 def test_alphabet(self):
136 h = Hashids(alphabet='!"#%&\',-/0123456789:;<=>ABCDEFGHIJKLMNOPQRSTUVWXYZ_`abcdefghijklmnopqrstuvwxyz~&#x27;)
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)

Callers

nothing calls this directly

Calls 2

decodeMethod · 0.95
HashidsClass · 0.90

Tested by

no test coverage detected