'Enroll user in a course scoped in a Site and one course outside of a Site
and make sure that they are only visible in the right Dashboards'

def test_site_course_enrollment(self):

    self.setup_users()
    (email, password) = self.STUDENT_INFO[1]
    self.login(email, password)
    self.enroll(self.course, True)
    self.enroll(self.course_outside_site, True)
    resp = self.client.get(reverse('dashboard'), HTTP_HOST=settings.MICROSITE_TEST_HOSTNAME)
    self.assertContains(resp, 'Robot_Super_Course')
    self.assertNotContains(resp, 'Robot_Course_Outside_Site')
    resp = self.client.get(reverse('dashboard'))
    self.assertNotContains(resp, 'Robot_Super_Course')
    self.assertContains(resp, 'Robot_Course_Outside_Site')
