def get_enrolled_course_string(self, enterprise_customer_user):
enrollment_client = EnrollmentApiClient()<EOL>enrolled_courses = enrollment_client.get_enrolled_courses(enterprise_customer_user.username)<EOL>course_details = []<EOL>courses_client = CourseApiClient()<EOL>for course in enrolled_courses:<EOL><INDENT>course_id = course['<STR_LIT>']['<STR_LIT>']<EOL>name = courses_client.get_course_details(course_id)['<STR_LIT:name>']<EOL>course_details.append({'<STR_LIT>': course_id, '<STR_LIT>': name})<EOL><DEDENT>template = '<STR_LIT>'<EOL>joiner = '<STR_LIT>'<EOL>return joiner.join(<EOL>template.format(<EOL>url=reverse('<STR_LIT>', args=[course['<STR_LIT>']]),<EOL>course_name=course['<STR_LIT>'],<EOL>)<EOL>for course in course_details<EOL>)<EOL>
Get an HTML string representing the courses the user is enrolled in.