'Creates a zero course grade and ensures that null scores aren\'t included in the section problem scores.'

@ddt.data(True, False)
def test_zero_null_scores(self, assume_zero_enabled):

    with waffle().override(ASSUME_ZERO_GRADE_IF_ABSENT, active=assume_zero_enabled):
        with patch('lms.djangoapps.grades.new.subsection_grade.get_score', return_value=None):
            course_data = CourseData(self.request.user, structure=self.course_structure)
            chapter_grades = ZeroCourseGrade(self.request.user, course_data).chapter_grades
            for chapter in chapter_grades:
                self.assertNotEqual({}, chapter_grades[chapter]['sections'])
                for section in chapter_grades[chapter]['sections']:
                    self.assertEqual({}, section.problem_scores)
