def METHOD_NAME(self):
    """
    Test that scores are not persisted when a learner has
    never attempted a problem, but are persisted if the
    learner's state has been deleted.
    """
    with mock_get_score(0, 0, None):
        self.subsection_grade_factory.update(self.sequence)
    # ensure no grades have been persisted
    assert 0 == len(PersistentSubsectionGrade.objects.all())
    with mock_get_score(0, 0, None):
        self.subsection_grade_factory.update(self.sequence, score_deleted=True)
    # ensure a grade has been persisted
    assert 1 == len(PersistentSubsectionGrade.objects.all())