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


import pytest
from fastavro.schema import (
    FINGERPRINT_ALGORITHMS,
    fingerprint,
    to_parsing_canonical_form,
)
                "doc": "Doc String",
            },
            "md5",
            "d883f2a9b16ed085fcc5e4ca6c8f6ed1",
        ),
        (
            {
                "type": "enum",
                "name": "Test",
                "symbols": ["A", "B"],
                "doc": "Doc String",
            },
            "sha256",
            "9b51286144f87ce5aebdc61ca834379effa5a41ce6ac0938630ff246297caca8",
        ),
        (
            {"type": "int"},
            "MD5",  # JAVA Name
            "ef524ea1b91e73173d938ade36c1db32",
        ),
        (
            {"type": "int"},
            "SHA-256",  # JAVA Name
            "3f2b87a9fe7cc9b13835598c3981cd45e3e355309e5090aa0933d7becb6fba45",
        ),
    ],
)
def test_random_cases(original_schema, algorithm, expected_fingerprint):
    # All of these random test cases came from the test cases here:
    # https://github.com/apache/avro/blob/0552c674637dd15b8751ed5181387cdbd81480d5/lang/py3/avro/tests/test_normalization.py

# 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,
)

                "doc": "Doc String",
            },
            "md5",
            "d883f2a9b16ed085fcc5e4ca6c8f6ed1",
        ),
        (
            {
                "type": "enum",
                "name": "Test",
                "symbols": ["A", "B"],
                "doc": "Doc String",
            },
            "sha256",
            "9b51286144f87ce5aebdc61ca834379effa5a41ce6ac0938630ff246297caca8",
        ),
        (
            {"type": "int"},
            "MD5",  # JAVA Name
            "ef524ea1b91e73173d938ade36c1db32",
        ),
        (
            {"type": "int"},
            "SHA-256",  # JAVA Name
            "3f2b87a9fe7cc9b13835598c3981cd45e3e355309e5090aa0933d7becb6fba45",
        ),
    ],
)
def test_random_cases(original_schema, algorithm, expected_fingerprint):
    # All of these random test cases came from the test cases here:
    # https://github.com/apache/avro/blob/0552c674637dd15b8751ed5181387cdbd81480d5/lang/py3/avro/tests/test_normalization.py

    canonical_form = to_parsing_canonical_form(original_schema)