check_archive_tree_class_invariants#

lsst.images.tests.check_archive_tree_class_invariants(tc: TestCase, cls: type[ArchiveTree]) None#

Assert that one concrete serialization.ArchiveTree subclass declares well-formed schema-version constants.

Checks that SCHEMA_NAME, SCHEMA_VERSION and MIN_READ_VERSION are present and well-typed, that the version is major.minor.patch, and that MIN_READ_VERSION does not exceed the schema major.

Parameters#

tc

Test case object with assert methods to use.

cls

The concrete serialization.ArchiveTree subclass to check.