'Checks the index page, and ensures the number of database queries is as expected.'

def check_index_page_with_query_count(self, separate_archived_courses, org, mongo_queries, sql_queries):

    with self.assertNumQueries(sql_queries):
        with check_mongo_calls(mongo_queries):
            self.check_index_page(separate_archived_courses=separate_archived_courses, org=org)
