'Create the search page and courses to search.'

def setUp(self):

    with open(self.TEST_INDEX_FILENAME, 'w+') as index_file:
        json.dump({}, index_file)
    super(DashboardSearchTest, self).setUp()
    self.dashboard = DashboardSearchPage(self.browser)
    self.courses = {'A': {'org': 'test_org', 'number': self.unique_id, 'run': 'test_run_A', 'display_name': 'Test    Course    A    '}, 'B': {'org': 'test_org', 'number': self.unique_id, 'run': 'test_run_B', 'display_name': 'Test    Course    B    '}, 'C': {'org': 'test_org', 'number': self.unique_id, 'run': 'test_run_C', 'display_name': 'Test    Course    C    '}}
    self.studio_course_outlines = {}
    self.course_fixtures = {}
    for (key, course_info) in self.courses.iteritems():
        studio_course_outline = StudioCourseOutlinePage(self.browser, course_info['org'], course_info['number'], course_info['run'])
        course_fix = CourseFixture(course_info['org'], course_info['number'], course_info['run'], course_info['display_name'])
        course_fix.add_children(XBlockFixtureDesc('chapter', 'Section    1').add_children(XBlockFixtureDesc('sequential', 'Subsection    1').add_children(XBlockFixtureDesc('problem', 'Test    Problem')))).add_children(XBlockFixtureDesc('chapter', 'Section    2').add_children(XBlockFixtureDesc('sequential', 'Subsection    2'))).install()
        self.studio_course_outlines[key] = studio_course_outline
        self.course_fixtures[key] = course_fix
