

def test_bad_sequence_map(self):
    'Error creating a sequence with a bad map'
    inmap = self.std_map()
    inmap['schema public'].update({
        'seq1': {
            'start_value': 1,
            'increment_by': 1,
            'max_value': None,
            'min_value': None,
            'cache_value': 1,
        },
    })
    with pytest.raises(KeyError):
        self.to_sql(inmap)

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