'Test dashboard analytics tab isn\'t shown if insights isn\'t configured.'

@override_settings(ANALYTICS_DASHBOARD_URL='')
@override_settings(ANALYTICS_DASHBOARD_NAME='')
def test_dashboard_analytics_tab_not_shown(self):

    response = self.client.get(self.url)
    analytics_section = '<li    class="nav-item"><a    href=""    data-section="instructor_analytics">Analytics</a></li>'
    self.assertNotIn(analytics_section, response.content)
