Execute a statement and assert that rows returned equal expected.
(self, statement, expected)
| 1524 | ) |
| 1525 | |
| 1526 | def assertRows(self, statement, expected): |
| 1527 | """Execute a statement and assert that rows returned equal expected.""" |
| 1528 | with testing.db.connect() as conn: |
| 1529 | found = sorted( |
| 1530 | [tuple(row) for row in conn.execute(statement).fetchall()] |
| 1531 | ) |
| 1532 | eq_(found, sorted(expected)) |
| 1533 | |
| 1534 | def test_join_x1(self): |
| 1535 | """Joins t1->t2.""" |
no test coverage detected