'Setup components used by each refund test.'

def setUp(self):

    super(RefundableTest, self).setUp()
    self.user = UserFactory.create(password=self.USER_PASSWORD)
    self.verified_mode = CourseModeFactory.create(course_id=self.course.id, mode_slug='verified', mode_display_name='Verified', expiration_datetime=(datetime.now(pytz.UTC) + timedelta(days=1)))
    self.enrollment = CourseEnrollment.enroll(self.user, self.course.id, mode='verified')
    self.client = Client()
    cache.clear()
