'Renders the progress page, instrumenting Mongo reads and SQL queries.'

def instrument_course_progress_render(self, course_width, enable_ccx, view_as_ccx, sql_queries, mongo_reads):

    course_key = self.setup_course(course_width, enable_ccx, view_as_ccx)
    with self.settings(MODULESTORE_BRANCH='published-only'):
        for cache in settings.CACHES:
            caches[cache].clear()
        get_course_in_cache(course_key)
        RequestCache.clear_request_cache()
        OverrideFieldData.provider_classes = None
        with self.assertNumQueries(sql_queries, using='default', table_blacklist=QUERY_COUNT_TABLE_BLACKLIST):
            with self.assertNumQueries(0, using='student_module_history'):
                with self.assertMongoCallCount(mongo_reads):
                    with self.assertXBlockInstantiations(1):
                        self.grade_course(course_key)
