def test_get_hash_algorithm_invalid_hash_alg(value, expected):
    with pytest.raises(ValueError) as error:
        helpers.get_hash_algorithm(value)

    assert str(error.value) == expected
def test_get_hash_algorithm(hash_algorithm, expected):
    assert helpers.get_hash_algorithm(hash_algorithm) == expected