def assert_multiple_sql_count(self, dbs, callable_, counts):
    recs = [(self.sql_execution_asserter(db), db, count) for (db, count) in zip(dbs, counts)]
    asserters = []
    for (ctx, db, count) in recs:
        asserters.append(ctx.__enter__())
    try:
        return callable_()
    finally:
        for (asserter, (ctx, db, count)) in zip(asserters, recs):
            ctx.__exit__(None, None, None)
            asserter.assert_(assertsql.CountStatements(count))
def assert_multiple_sql_count(self, dbs, callable_, counts):
    recs = [(self.sql_execution_asserter(db), db, count) for (db, count) in zip(dbs, counts)]
    asserters = []
    for (ctx, db, count) in recs:
        asserters.append(ctx.__enter__())
    try:
        return callable_()
    finally:
        for (asserter, (ctx, db, count)) in zip(asserters, recs):
            ctx.__exit__(None, None, None)
            asserter.assert_(assertsql.CountStatements(count))