

def test_change_sequence(self):
    'Change sequence attributes'
    inmap = self.std_map()
    inmap['schema public'].update({
        'sequence seq1': {
            'start_value': 5,
            'increment_by': 10,
            'max_value': None,
            'min_value': None,
            'cache_value': 30,
        },
    })
    sql = self.to_sql(inmap, [CREATE_STMT])
    assert (fix_indent(sql[0]) == 'ALTER SEQUENCE seq1 START WITH 5 INCREMENT BY 10 CACHE 30')

dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_sequence.py SequenceToSqlTestCase.test_change_sequence/original