'Verifies the given user\'s course grade is the expected percentage.
Also verifies the user\'s grade information contains values for
all problems in the course, whether or not they are currently
gated.'

def assert_course_grade(self, user, expected_percent):

    course_grade = CourseGradeFactory().create(user, self.course)
    for prob in [self.gating_prob1, self.gated_prob2, self.prob3]:
        self.assertIn(prob.location, course_grade.problem_scores)
    self.assertEquals(course_grade.percent, expected_percent)
