'Verifies user course enrollment response for success'

def verify_success(self, response):

    super(TestUserEnrollmentApi, self).verify_success(response)
    courses = response.data
    self.assertEqual(len(courses), 1)
    found_course = courses[0]['course']
    self.assertIn('courses/{}/about'.format(self.course.id), found_course['course_about'])
    self.assertIn('course_info/{}/updates'.format(self.course.id), found_course['course_updates'])
    self.assertIn('course_info/{}/handouts'.format(self.course.id), found_course['course_handouts'])
    self.assertIn('video_outlines/courses/{}'.format(self.course.id), found_course['video_outline'])
    self.assertEqual(found_course['id'], unicode(self.course.id))
    self.assertEqual(courses[0]['mode'], CourseMode.DEFAULT_MODE_SLUG)
    self.assertEqual(courses[0]['course']['subscription_id'], self.course.clean_id(padding_char='_'))
    expected_course_image_url = course_image_url(self.course)
    self.assertIsNotNone(expected_course_image_url)
    self.assertIn(expected_course_image_url, found_course['course_image'])
    self.assertIn(expected_course_image_url, found_course['media']['course_image']['uri'])
