Execute a statement and assert that rows returned equal expected.
(self, statement, expected)
| 1456 | ) |
| 1457 | |
| 1458 | def assertRows(self, statement, expected): |
| 1459 | """Execute a statement and assert that rows returned equal expected.""" |
| 1460 | with testing.db.connect() as conn: |
| 1461 | found = sorted( |
| 1462 | [tuple(row) for row in conn.execute(statement).fetchall()] |
| 1463 | ) |
| 1464 | eq_(found, sorted(expected)) |
| 1465 | |
| 1466 | def test_join_x1(self): |
| 1467 | """Joins t1->t2.""" |
no test coverage detected