def test_rename_domain(self):
        inmap = self.std_map()
        inmap['schema public'].update({'domain d2': {
            'oldname': 'd1', 'type': 'integer'}})
        sql = self.to_sql(inmap, [CREATE_STMT])
        assert sql == ["ALTER DOMAIN d1 RENAME TO d2"]
Rename an existing domain
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_domain.py/DomainToSqlTestCase.test_rename_domain