'Test ccx coach tab state (visible or hidden) depending on the value of enable_ccx flag, ccx feature flag.'

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

    with self.settings(FEATURES={'CUSTOM_COURSES_EDX': ccx_feature_flag}):
        course = (self.ccx_enabled_course if enable_ccx else self.ccx_disabled_course)
        self.assertEquals(expected_result, self.check_ccx_tab(course, self.user))
