'Verifies the number of expected queries when calling
get_blocks on the given course.'

def _get_blocks(self, course, expected_mongo_queries, expected_sql_queries):

    with check_mongo_calls(expected_mongo_queries):
        with self.assertNumQueries(expected_sql_queries):
            get_blocks(self.request, course.location, self.user)
