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"]
Attempts to create an object using a user who has the wrong perms.
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_domain.py/DomainToSqlTestCase.test_create_domain_default--crossover with--dataset/ETHPy150Open mozilla/moztrap/tests/case/api/crud.py/ApiCrudCases.test_create_fails_with_wrong_perms