

def test_bad_rename_sequence(self):
    'Error renaming a non-existing sequence'
    inmap = inmap.std_map()
    inmap['schema public'].update({
        'sequence seq2': {
            'oldname': 'seq3',
            'start_value': 1,
            'increment_by': 1,
            'max_value': None,
            'min_value': None,
            'cache_value': 1,
        },
    })
    with pytest.raises(KeyError):
        self.to_sql(inmap, [CREATE_STMT])

dataset/ETHPy150Open perseas/Pyrseas/tests/dbobject/test_sequence.py SequenceToSqlTestCase.test_bad_rename_sequence/VarMisuse@14/33 `self`->`inmap`