def test_rename_sequence(self):
        inmap = self.std_map()
        inmap['schema public'].update({'sequence seq2': {
            'oldname': 'seq1', 'start_value': 1, 'increment_by': 1,
            'max_value': None, 'min_value': None, 'cache_value': 1}})
        sql = self.to_sql(inmap, [CREATE_STMT])
        assert sql == ["ALTER SEQUENCE seq1 RENAME TO seq2"]
Rename an existing sequence
dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_sequence.py/SequenceToSqlTestCase.test_rename_sequence