def test_create_domain_default(self):
        inmap = self.std_map()
        inmap['schema public'].update({'domain d1': {
            'type': 'integer', 'not_null': True, 'default': 0}})
        sql = self.to_sql(inmap)
        assert sql == [CREATE_STMT + " NOT NULL DEFAULT 0"]
Create a domain with a DEFAULT and NOT NULL
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_domain.py/DomainToSqlTestCase.test_create_domain_default