'Verify that the homepage, when accessed via a Site domain, returns
HTML that reflects the Site branding elements'

@override_settings(SITE_NAME=settings.MICROSITE_TEST_HOSTNAME)
def test_site_anonymous_homepage_content(self):

    resp = self.client.get('/', HTTP_HOST=settings.MICROSITE_TEST_HOSTNAME)
    self.assertEqual(resp.status_code, 200)
    self.assertContains(resp, 'This    is    a    Test    Site    Overlay')
    self.assertContains(resp, 'test_site/images/header-logo.png')
    self.assertContains(resp, 'test_site/css/test_site')
    self.assertContains(resp, 'Test    Site')
    self.assertContains(resp, 'Robot_Super_Course')
    self.assertContains(resp, 'visible_course')
    self.assertNotContains(resp, 'Robot_Course_Outside_Site')
    self.assertNotContains(resp, 'Hidden_course')
    self.assertContains(resp, 'This    is    a    Test    Site    footer')
    self.assertNotContains(resp, '<section    class="university-partners    university-partners2x6">')
    self.assertNotContains(resp, 'Explore    free    courses    from')
