'Verify that links to detail pages are present.'

def test_links_to_detail_pages(self, mock_get_programs):

    self.create_programs_config()
    mock_get_programs.return_value = self.data
    CourseEnrollmentFactory(user=self.user, course_id=self.course.id)
    response = self.client.get(self.url)
    actual = self.load_serialized_data(response, 'programsData')
    actual = sorted(actual, key=self.program_sort_key)
    for (index, actual_program) in enumerate(actual):
        expected_program = self.data[index]
        expected_url = reverse('program_details_view', kwargs={'program_uuid': expected_program['uuid']})
        self.assertEqual(actual_program['detail_url'], expected_url)
