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

Method test_only_one_valid

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

Source from the content-addressed store, hash-verified

171 assert h.decode('373az') == (99, 25)
172
173 def test_only_one_valid(self):
174 h = Hashids(min_length=6)
175 assert h.decode(h.encode(1)[:-1] + '0') == ()
176
177 def test_decode_hex(self):
178 hex_str = '507f1f77bcf86cd799439011'

Callers

nothing calls this directly

Calls 3

decodeMethod · 0.95
encodeMethod · 0.95
HashidsClass · 0.90

Tested by

no test coverage detected