(self, connection, table, expect=1)
| 563 | # empty insert was added as of sqlite 3.3.8. |
| 564 | |
| 565 | def _test_empty_insert(self, connection, table, expect=1): |
| 566 | try: |
| 567 | table.create(connection) |
| 568 | for wanted in expect, expect * 2: |
| 569 | connection.execute(table.insert()) |
| 570 | rows = connection.execute(table.select()).fetchall() |
| 571 | eq_(len(rows), wanted) |
| 572 | finally: |
| 573 | table.drop(connection) |
| 574 | |
| 575 | def test_empty_insert_pk1(self, connection): |
| 576 | self._test_empty_insert( |
no test coverage detected