'Given that I am a student
When I visit the LMS Courseware
Then I cannot see a gated subsection
When I fulfill the gating Prerequisite
Then I can see the gated subsection'

def test_gated_subsection_in_lms_for_student(self):

    self._setup_prereq()
    self._setup_gated_subsection()
    self._auto_auth(self.STUDENT_USERNAME, self.STUDENT_EMAIL, False)
    self.course_home_page.visit()
    self.assertEqual(self.course_home_page.outline.num_subsections, 1)
    self.courseware_page.visit()
    self._fulfill_prerequisite()
    self.course_home_page.visit()
    self.assertEqual(self.course_home_page.outline.num_subsections, 2)
