'Test the info page on a course without any display_* settings against
one that does.'

def test_info_title(self):

    url = reverse('info', args=(unicode(self.course.id),))
    response = self.client.get(url)
    content = pq(response.content)
    expected_title = "Welcome    to    {org}'s    {course_name}!".format(org=self.course.display_org_with_default, course_name=self.course.display_number_with_default)
    display_course = CourseFactory.create(org='HogwartZ', number='Potions_3', display_organization='HogwartsX', display_coursenumber='Potions', display_name='Introduction_to_Potions')
    display_url = reverse('info', args=(unicode(display_course.id),))
    display_response = self.client.get(display_url)
    display_content = pq(display_response.content)
    expected_display_title = "Welcome    to    {org}'s    {course_name}!".format(org=display_course.display_org_with_default, course_name=display_course.display_number_with_default)
    self.assertIn(expected_title, content('.page-title').contents()[0])
    self.assertIn(expected_display_title, display_content('.page-title').contents()[0])
    self.assertIn(display_course.display_name_with_default, display_content('.page-subtitle').contents())
