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

def test_enable_disable_course_flag(self):

    with lti_consumer_fields_editing_flag(course_id=self.course_id, enabled_for_course=True):
        self.assertTrue(CourseEditLTIFieldsEnabledFlag.lti_access_to_learners_editable(self.course_id, False))
        with lti_consumer_fields_editing_flag(course_id=self.course_id, enabled_for_course=False):
            self.assertFalse(CourseEditLTIFieldsEnabledFlag.lti_access_to_learners_editable(self.course_id, False))
