'Test that the course mode for courses is visible on the dashboard
when settings have been overridden by site configuration.'

@unittest.skipUnless((settings.ROOT_URLCONF == 'lms.urls'), 'Test    only    valid    in    lms')
@patch.dict('django.conf.settings.FEATURES', {'ENABLE_VERIFIED_CERTIFICATES': False})
@ddt.data(('testserver1.com', {'ENABLE_VERIFIED_CERTIFICATES': True}), ('testserver2.com', {'ENABLE_VERIFIED_CERTIFICATES': True, 'DISPLAY_COURSE_MODES_ON_DASHBOARD': True}))
@ddt.unpack
def test_course_mode_visible(self, site_domain, site_configuration_values):

    site_configuration_values.update({'SITE_NAME': site_domain, 'course_org_filter': self.org})
    self.set_up_site(site_domain, site_configuration_values)
    self.client.login(username='jack', password='test')
    response = self.client.get(reverse('dashboard'))
    self.assertContains(response, 'class="course    professional"')
