コード例 #1
0
def test_shortened_key(inp, key, expected):
    with pytest.raises(ValueError):
        crypto_shorthash_siphash24(inp, key)
コード例 #2
0
def test_crypto_shorthash_siphash24(inp, key, expected):
    rs = crypto_shorthash_siphash24(inp, key)
    assert rs == expected