| 413 | (Sequence("foo_seq", increment=5),), |
| 414 | ) |
| 415 | def test_start_increment(self, seq): |
| 416 | seq = normalize_sequence(config, seq) |
| 417 | seq.create(testing.db) |
| 418 | try: |
| 419 | with testing.db.connect() as conn: |
| 420 | values = [conn.scalar(seq) for i in range(3)] |
| 421 | start = seq.start or testing.db.dialect.default_sequence_base |
| 422 | inc = seq.increment or 1 |
| 423 | eq_(values, list(range(start, start + inc * 3, inc))) |
| 424 | |
| 425 | finally: |
| 426 | seq.drop(testing.db) |
| 427 | |
| 428 | def _has_sequence(self, connection, name): |
| 429 | return testing.db.dialect.has_sequence(connection, name) |