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.Checks that
SCHEMA_NAME,SCHEMA_VERSIONandMIN_READ_VERSIONare 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.