def test_checks(self):
        """
        Verify computed check values and residues match catalogue entries.
        """
        for name in dir(catalog):
            if name.startswith("CRC"):
                crc = getattr(catalog, name)(data_width=8)
                check, residue = CRC_CHECKS[name]
                assert crc.compute(b"123456789") == check
                assert crc.residue() == residue

        Verify computed check values and residues match catalogue entries.
        
tests/test_lib_crc.py