# Path: fastavro/schema.py
# FINGERPRINT_ALGORITHMS = _schema.FINGERPRINT_ALGORITHMS


import pytest
from fastavro.schema import (
    FINGERPRINT_ALGORITHMS,
    fingerprint,
    to_parsing_canonical_form,
)


@pytest.mark.parametrize(
    "fingerprint", ["CRC-64-AVRO", "SHA-256", "MD5", "sha256", "md5"]
)
def test_required_fingerprints(fingerprint):
    assert fingerprint in FINGERPRINT_ALGORITHMS


def test_unknown_algorithm():
    unknown_algorithm = "UNKNOWN"
    assert unknown_algorithm not in FINGERPRINT_ALGORITHMS

    with pytest.raises(ValueError, match="Unknown schema fingerprint algorithm"):

# Path: fastavro/schema.py
# FINGERPRINT_ALGORITHMS = _schema.FINGERPRINT_ALGORITHMS


# Path: tests/test_fingerprint.py
import pytest
from fastavro.schema import (
    FINGERPRINT_ALGORITHMS,
    fingerprint,
    to_parsing_canonical_form,
)



@pytest.mark.parametrize(
    "fingerprint", ["CRC-64-AVRO", "SHA-256", "MD5", "sha256", "md5"]
)
def test_required_fingerprints(fingerprint):
    assert fingerprint in FINGERPRINT_ALGORITHMS


def test_unknown_algorithm():
    unknown_algorithm = "UNKNOWN"
    assert unknown_algorithm not in FINGERPRINT_ALGORITHMS

    with pytest.raises(ValueError, match="Unknown schema fingerprint algorithm"):

        fingerprint("string", unknown_algorithm)