'Creates a verified mode for the course and purchases it for the student.'

def _create_and_purchase_verified(self, student, course_id):

    course_mode = CourseMode(course_id=course_id, mode_slug='verified', mode_display_name='verified    cert', min_price=50)
    course_mode.save()
    cart = Order.get_cart_for_user(user=student)
    CertificateItem.add_to_order(cart, course_id, 50, 'verified')
    cart.purchase()
