'adding course to user cart'

def add_course_to_user_cart(self, course_key):

    self.login_user()
    reg_item = PaidCourseRegistration.add_to_order(self.cart, course_key, mode_slug=self.course_mode.mode_slug)
    return reg_item
