'Verifies the problem score and the homework grade are as expected.'

def _verify_grade(self, expected_problem_score, expected_hw_grade):

    hw_grade = self.hw_grade('homework')
    problem_score = hw_grade.problem_scores.values()[0]
    self.assertEquals((problem_score.earned, problem_score.possible), expected_problem_score)
    self.assertEquals((hw_grade.graded_total.earned, hw_grade.graded_total.possible), expected_hw_grade)
