

def test_comment_on_sequence(self):
    'Create a comment for an existing sequence'
    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,
            'description': 'Test sequence seq1',
        },
    })
    sql = self.to_sql(inmap, [CREATE_STMT])
    assert (sql == [COMMENT_STMT])

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