def assertRows(self, statement, expected):

        found = sorted([tuple(row)
                        for row in statement.execute().fetchall()])

        eq_(found, sorted(expected))
Execute a statement and assert that rows returned equal expected.
dataset/ETHPy150Open zzzeek/sqlalchemy/test/sql/test_query.py/JoinTest.assertRows