'Test enrollment dashboard message is shown and data is hidden.'

@patch.dict(settings.FEATURES, {'DISPLAY_ANALYTICS_ENROLLMENTS': False})
@override_settings(ANALYTICS_DASHBOARD_URL='http://example.com')
@override_settings(ANALYTICS_DASHBOARD_NAME='Example')
def test_show_dashboard_enrollment_message(self):

    response = self.client.get(self.url)
    self.assertNotIn('<th    scope="row">Verified</th>', response.content)
    self.assertNotIn('<th    scope="row">Audit</th>', response.content)
    self.assertNotIn('<th    scope="row">Honor</th>', response.content)
    self.assertNotIn('<th    scope="row">Professional</th>', response.content)
    expected_message = self.get_dashboard_enrollment_message()
    self.assertIn(expected_message, response.content)
