'Helper to set up a problem subsection as staff, then take
it as a student.'

def _setup_subsection(self):

    self.logout_page.visit()
    auto_auth(self.browser, 'STAFF_TESTER', 'staff101@example.com', True, self.course_id)
    self.studio_course_outline.visit()
    self.studio_course_outline.open_subsection_settings_dialog()
    self.studio_course_outline.select_visibility_tab()
    self.studio_course_outline.make_subsection_hidden_after_due_date()
    self.logout_page.visit()
    auto_auth(self.browser, self.USERNAME, self.EMAIL, False, self.course_id)
    self.courseware_page.visit()
    self.logout_page.visit()
