'Test that feature flag works correctly with course-specific configuration in combination with
a boolean which indicates whether a course-run already sharing learner username/email - given
the course-specific configuration record is present.'

@ddt.data((True, True), (True, False), (False, True), (False, False))
@ddt.unpack
def test_lti_fields_editing_feature_flags(self, enabled_for_course, is_already_sharing_learner_info):

    with lti_consumer_fields_editing_flag(course_id=self.course_id, enabled_for_course=enabled_for_course):
        feature_enabled = CourseEditLTIFieldsEnabledFlag.lti_access_to_learners_editable(self.course_id, is_already_sharing_learner_info)
        self.assertEqual(feature_enabled, enabled_for_course)
