(self)
| 88 | assert Hashids().encode(1, 2.5, 3) == '' |
| 89 | |
| 90 | def test_encode_hex(self): |
| 91 | assert Hashids().encode_hex('507f1f77bcf86cd799439011') == 'y42LW46J9luq3Xq9XMly' |
| 92 | assert len(Hashids(min_length=1000).encode_hex('507f1f77bcf86cd799439011')) >= 1000 |
| 93 | assert Hashids().encode_hex('f000000000000000000000000000000000000000000000000000000000000000000000000000000000000f') == \ |
| 94 | 'WxMLpERDrmh25Lp4L3xEfM6WovWYO3IjkRMKR2ogCMVzn4zQlqt1WK8jKq7OsEpy2qyw1Vi2p' |
| 95 | |
| 96 | def test_illegal_hex(self): |
| 97 | assert Hashids().encode_hex('') == '' |
nothing calls this directly
no test coverage detected