

def test_undo_create_sequence(self):
    'Revert a sequence creation'
    inmap = self.std_map()
    inmap['schema public'].update({
        'sequence seq1': {
            'start_value': 1,
            'increment_by': 1,
            'max_value': None,
            'min_value': None,
            'cache_value': 1,
        },
    })
    sql = self.to_sql(inmap, revert=True)
    assert (sql == ['DROP SEQUENCE seq1'])

dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_sequence.py SequenceUndoSqlTestCase.test_undo_create_sequence/original