def test_shortened_key(inp, key, expected): with pytest.raises(ValueError): crypto_shorthash_siphash24(inp, key)
def test_crypto_shorthash_siphash24(inp, key, expected): rs = crypto_shorthash_siphash24(inp, key) assert rs == expected