# Path: fastavro/schema.py
# FINGERPRINT_ALGORITHMS = _schema.FINGERPRINT_ALGORITHMS
# 
# Path: fastavro/_schema_common.py
# PRIMITIVES = {
#     "boolean",
#     "bytes",
#     "double",
#     "float",
#     "int",
#     "long",
#     "null",
#     "string",
# }


import pytest
from fastavro.schema import to_parsing_canonical_form
from fastavro._schema_common import PRIMITIVES
                        "name": "match",
                        "type": {
                            "type": "enum",
                            "name": "HandshakeMatch",
                            "symbols": ["BOTH", "CLIENT", "NONE"],
                        },
                    },
                    {"name": "serverProtocol", "type": ["null", "string"]},
                    {
                        "name": "serverHash",
                        "type": ["null", {"name": "MD5", "size": 16, "type": "fixed"}],
                    },
                    {
                        "name": "meta",
                        "type": ["null", {"type": "map", "values": "bytes"}],
                    },
                ],
            },
            (
                '{"name":"org.apache.avro.ipc.HandshakeResponse","type":"record'
                + '","fields":[{"name":"match","type":{"name":"org.apache.avro.'
                + 'ipc.HandshakeMatch","type":"enum","symbols":["BOTH","CLIENT"'
                + ',"NONE"]}},{"name":"serverProtocol","type":["null","string"]'
                + '},{"name":"serverHash","type":["null",{"name":"org.apache.av'
                + 'ro.ipc.MD5","type":"fixed","size":16}]},{"name":"meta","type'
                + '":["null",{"type":"map","values":"bytes"}]}]}'
            ),
        ),
        (
            {

# Path: fastavro/schema.py
# FINGERPRINT_ALGORITHMS = _schema.FINGERPRINT_ALGORITHMS
# 
# Path: fastavro/_schema_common.py
# PRIMITIVES = {
#     "boolean",
#     "bytes",
#     "double",
#     "float",
#     "int",
#     "long",
#     "null",
#     "string",
# }


# Path: tests/test_canonical_form.py
import pytest
from fastavro.schema import to_parsing_canonical_form
from fastavro._schema_common import PRIMITIVES

                        "name": "match",
                        "type": {
                            "type": "enum",
                            "name": "HandshakeMatch",
                            "symbols": ["BOTH", "CLIENT", "NONE"],
                        },
                    },
                    {"name": "serverProtocol", "type": ["null", "string"]},
                    {
                        "name": "serverHash",
                        "type": ["null", {"name": "MD5", "size": 16, "type": "fixed"}],
                    },
                    {
                        "name": "meta",
                        "type": ["null", {"type": "map", "values": "bytes"}],
                    },
                ],
            },
            (
                '{"name":"org.apache.avro.ipc.HandshakeResponse","type":"record'
                + '","fields":[{"name":"match","type":{"name":"org.apache.avro.'
                + 'ipc.HandshakeMatch","type":"enum","symbols":["BOTH","CLIENT"'
                + ',"NONE"]}},{"name":"serverProtocol","type":["null","string"]'
                + '},{"name":"serverHash","type":["null",{"name":"org.apache.av'
                + 'ro.ipc.MD5","type":"fixed","size":16}]},{"name":"meta","type'
                + '":["null",{"type":"map","values":"bytes"}]}]}'
            ),
        ),
        (
            {

                "type": "record",