'Test whether the "CCX Coaches" option is visible or hidden depending on the value of course.enable_ccx.'

@ddt.data((True, True, True), (True, False, False), (True, None, False), (False, True, False), (False, False, False), (False, None, False))
@ddt.unpack
def test_ccx_coaches_option_on_admin_list_management_instructor(self, ccx_feature_flag, enable_ccx, expected_result):

    with patch.dict(settings.FEATURES, {'CUSTOM_COURSES_EDX': ccx_feature_flag}):
        self.course.enable_ccx = enable_ccx
        self.store.update_item(self.course, self.instructor.id)
        response = self.client.get(self.url)
        self.assertEquals(expected_result, ('CCX    Coaches    are    able    to    create    their    own    Custom    Courses    based    on    this    course' in response.content))
