'Create search page and course content to search'

def setUp(self, is_staff=True):

    with open(self.TEST_INDEX_FILENAME, 'w+') as index_file:
        json.dump({}, index_file)
    self.addCleanup(remove_file, self.TEST_INDEX_FILENAME)
    super(CoursewareSearchCohortTest, self).setUp(is_staff=is_staff)
    self.staff_user = self.user
    self.studio_course_outline = StudioCourseOutlinePage(self.browser, self.course_info['org'], self.course_info['number'], self.course_info['run'])
    self.content_group_a = 'Content    Group    A'
    self.content_group_b = 'Content    Group    B'
    self.cohort_a_student_username = ('cohort_a_' + str(uuid.uuid4().hex)[:12])
    self.cohort_a_student_email = (self.cohort_a_student_username + '@example.com')
    AutoAuthPage(self.browser, username=self.cohort_a_student_username, email=self.cohort_a_student_email, no_login=True).visit()
    self.cohort_b_student_username = ('cohort_b_' + str(uuid.uuid4().hex)[:12])
    self.cohort_b_student_email = (self.cohort_b_student_username + '@example.com')
    AutoAuthPage(self.browser, username=self.cohort_b_student_username, email=self.cohort_b_student_email, no_login=True).visit()
    self.cohort_default_student_username = 'cohort_default_student'
    self.cohort_default_student_email = 'cohort_default_student@example.com'
    AutoAuthPage(self.browser, username=self.cohort_default_student_username, email=self.cohort_default_student_email, no_login=True).visit()
    self.course_home_page = CourseHomePage(self.browser, self.course_id)
    self._auto_auth(self.staff_user['username'], self.staff_user['email'], True)
    self.enable_cohorting(self.course_fixture)
    self.create_content_groups()
    self.link_html_to_content_groups_and_publish()
    self.create_cohorts_and_assign_students()
    self._studio_reindex()
