def test_domain_check(self):
        dbmap = self.to_map([CREATE_STMT + " CHECK (VALUE >= 1888)"])
        expmap = {'type': 'integer', 'check_constraints': {
            'd1_check': {'expression': '(VALUE >= 1888)'}}}
        assert dbmap['schema public']['domain d1'] == expmap
Map a domain with a CHECK constraint
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_domain.py/DomainToMapTestCase.test_domain_check