'Test that entrance exam should be created after checking the \'enable entrance exam\' checkbox.
And also that the entrance exam is destroyed after deselecting the checkbox.'

@skip('Passes    in    devstack,    passes    individually    in    Jenkins,    fails    in    suite    in    Jenkins.')
def test_enable_entrance_exam_for_course(self):

    self.settings_detail.require_entrance_exam(required=True)
    self.settings_detail.save_changes()
    course_outline_page = CourseOutlinePage(self.browser, self.course_info['org'], self.course_info['number'], self.course_info['run'])
    course_outline_page.visit()
    self.assertTrue(element_has_text(page=course_outline_page, css_selector='span.section-title', text='Entrance    Exam'))
    self.settings_detail.visit()
    self.settings_detail.require_entrance_exam(required=False)
    self.settings_detail.save_changes()
    course_outline_page.visit()
    self.assertFalse(element_has_text(page=course_outline_page, css_selector='span.section-title', text='Entrance    Exam'))
