'Ensures that the flag, once enabled for a course, can also be disabled.'

def test_enable_disable_course_flag(self):

    with persistent_grades_feature_flags(global_flag=True, enabled_for_all_courses=False, course_id=self.course_id_1, enabled_for_course=True):
        self.assertTrue(PersistentGradesEnabledFlag.feature_enabled(self.course_id_1))
        with persistent_grades_feature_flags(global_flag=True, enabled_for_all_courses=False, course_id=self.course_id_1, enabled_for_course=False):
            self.assertFalse(PersistentGradesEnabledFlag.feature_enabled(self.course_id_1))
