'Initialize the test.
Create the necessary page objects, create a test course and configure its modes,
create a user and log them in.'

def setUp(self):

    super(PayAndVerifyTest, self).setUp()
    self.payment_and_verification_flow = PaymentAndVerificationFlow(self.browser, self.course_id)
    self.immediate_verification_page = PaymentAndVerificationFlow(self.browser, self.course_id, entry_point='verify-now')
    self.upgrade_page = PaymentAndVerificationFlow(self.browser, self.course_id, entry_point='upgrade')
    self.fake_payment_page = FakePaymentPage(self.browser, self.course_id)
    self.dashboard_page = DashboardPage(self.browser)
    CourseFixture(self.course_info['org'], self.course_info['number'], self.course_info['run'], self.course_info['display_name']).install()
    ModeCreationPage(self.browser, self.course_id).visit()
    ModeCreationPage(self.browser, self.course_id, mode_slug=u'verified', mode_display_name=u'Verified    Certificate', min_price=10, suggested_prices='10,20').visit()
