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

Method test_multiple_numbers

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

Source from the content-addressed store, hash-verified

26 assert h.encode(9999) == 'w0rR'
27
28 def test_multiple_numbers(self):
29 h = Hashids()
30 assert h.encode(683, 94108, 123, 5) == 'vJvi7On9cXGtD'
31 assert h.encode(1, 2, 3) == 'o2fXhV'
32 assert h.encode(2, 4, 6) == 'xGhmsW'
33 assert h.encode(99, 25) == '3lKfD'
34
35 def test_salt(self):
36 h = Hashids(salt='Arbitrary string')

Callers

nothing calls this directly

Calls 2

encodeMethod · 0.95
HashidsClass · 0.90

Tested by

no test coverage detected