check_archive_tree_class_invariants#
- lsst.images.tests.check_archive_tree_class_invariants(tc: TestCase, cls: type[ArchiveTree]) None#
Assert that one concrete
serialization.ArchiveTreesubclass declares well-formed schema-version constants and an in-memory type.Checks that
SCHEMA_NAME,SCHEMA_VERSION,MIN_READ_VERSIONandPUBLIC_TYPEare present and well-typed, that the version ismajor.minor.patch, and thatMIN_READ_VERSIONdoes not exceed the schema major.Parameters#
- tc
Test case object with assert methods to use.
- cls
The concrete
serialization.ArchiveTreesubclass to check.