'test to check the paid user enrollment csv report status
and enrollment source.'

def test_student_paid_course_enrollment_report(self):

    student = UserFactory()
    student_cart = Order.get_cart_for_user(student)
    PaidCourseRegistration.add_to_order(student_cart, self.course.id)
    student_cart.purchase()
    task_input = {'features': []}
    with patch('lms.djangoapps.instructor_task.tasks_helper.runner._get_current_task'):
        result = upload_enrollment_report(None, None, self.course.id, task_input, 'generating_enrollment_report')
    self.assertDictContainsSubset({'attempted': 1, 'succeeded': 1, 'failed': 0}, result)
    self._verify_cell_data_in_csv(student.username, 'Enrollment    Source', 'Credit    Card    -    Individual')
    self._verify_cell_data_in_csv(student.username, 'Payment    Status', 'purchased')
