'Initialize pages and install a course fixture.'

def setUp(self):

    super(ProblemExecutionTest, self).setUp()
    self.course_home_page = CourseHomePage(self.browser, self.course_id)
    self.tab_nav = TabNavPage(self.browser)
    course_fix = CourseFixture(self.course_info['org'], self.course_info['number'], self.course_info['run'], self.course_info['display_name'])
    course_fix.add_asset(['python_lib.zip'])
    course_fix.add_children(XBlockFixtureDesc('chapter', 'Test    Section').add_children(XBlockFixtureDesc('sequential', 'Test    Subsection').add_children(XBlockFixtureDesc('problem', 'Python    Problem', data=dedent('                                                                                                <problem>\n                                                                                                <script    type="loncapa/python">\n                                                                                                from    number_helpers    import    seventeen,    fortytwo\n                                                                                                oneseven    =    seventeen()\n\n                                                                                                def    check_function(expect,    ans):\n                                                                                                                if    int(ans)    ==    fortytwo(-22):\n                                                                                                                                return    True\n                                                                                                                else:\n                                                                                                                                return    False\n                                                                                                </script>\n\n                                                                                                <p>What    is    the    sum    of    $oneseven    and    3?</p>\n\n                                                                                                <customresponse    expect="20"    cfn="check_function">\n                                                                                                                <textline/>\n                                                                                                </customresponse>\n                                                                                                </problem>\n                                                                                                '))))).install()
    AutoAuthPage(self.browser, course_id=self.course_id).visit()
