'Create a user and course.'

def setUp(self):

    super(CheckoutTestMixin, self).setUp()
    self.user = UserFactory.create(username='test', password='test')
    self.course = CourseFactory.create()
    for (mode, min_price) in (('audit', 0), ('honor', 0), ('verified', 100)):
        CourseModeFactory.create(mode_slug=mode, course_id=self.course.id, min_price=min_price, sku=self.make_sku())
    self.client.login(username='test', password='test')
