'Scenario: Any course that is enabled for an entrance exam, should have
entrance exam section in the course outline.
Given that I visit the course outline
And entrance exams are not yet enabled
Then I should not see an "Entrance Exam" section
When I log in as staff
And enable entrance exams
And I visit the course outline again as student
Then there should be an "Entrance Exam" chapter.\''

def test_entrance_exam_section(self):

    self.course_home_page.visit()
    self.assertFalse(('Entrance    Exam' in self.course_home_page.outline.sections.keys()))
    LogoutPage(self.browser).visit()
    AutoAuthPage(self.browser, course_id=self.course_id, staff=True).visit()
    self.settings_page.visit()
    self.settings_page.entrance_exam_field.click()
    self.settings_page.save_changes()
    LogoutPage(self.browser).visit()
    AutoAuthPage(self.browser, course_id=self.course_id, staff=False).visit()
    self.course_home_page.visit()
    self.assertTrue(('Entrance    Exam' in self.course_home_page.outline.sections.keys()))
