'Test analytics dashboard message is shown'

@override_settings(ANALYTICS_DASHBOARD_URL='http://example.com')
@override_settings(ANALYTICS_DASHBOARD_NAME='Example')
def test_dashboard_analytics_points_at_insights(self):

    response = self.client.get(self.url)
    analytics_section = '<li    class="nav-item"><button    type="button"    class="btn-link    instructor_analytics"    data-section="instructor_analytics">Analytics</button></li>'
    self.assertIn(analytics_section, response.content)
    expected_message = self.get_dashboard_analytics_message()
    self.assertIn(expected_message, response.content)
