'Make sure the feature flag is honored'

@ddt.data((True, False, 1), (False, True, 1), (False, False, 0))
@ddt.unpack
def test_advanced_settings(self, enable_timed_exams, enable_proctored_exams, expected_count):

    self.course = CourseFactory.create(org='edX', course='901', run='test_run2', enable_proctored_exams=enable_proctored_exams, enable_timed_exams=enable_timed_exams)
    chapter = ItemFactory.create(parent=self.course, category='chapter', display_name='Test    Section')
    ItemFactory.create(parent=chapter, category='sequential', display_name='Test    Proctored    Exam', graded=True, is_time_limited=True, default_time_limit_minutes=10, is_proctored_exam=True, exam_review_rules='allow_use_of_paper', hide_after_due=False)
    listen_for_course_publish(self, self.course.id)
    exams = get_all_exams_for_course(unicode(self.course.id))
    self.assertEqual(len(exams), expected_count)
