def test_rename_enum(self):
        inmap = self.std_map()
        inmap['schema public'].update({'type t2': {
            'oldname': 't1', 'labels': ['red', 'green', 'blue']}})
        sql = self.to_sql(inmap, [CREATE_ENUM_STMT])
        assert sql == ["ALTER TYPE t1 RENAME TO t2"]
Rename an existing enum
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_type.py/EnumToSqlTestCase.test_rename_enum