'Test that adding and removing specific advanced components adds and removes tabs.'

def test_advanced_components_munge_tabs(self):

    self.assertNotIn(self.notes_tab, self.course.tabs)
    self.client.ajax_post(self.course_setting_url, {'advanced_modules': {'value': ['notes']}})
    course = modulestore().get_course(self.course.id)
    self.assertIn(self.notes_tab, course.tabs)
    self.client.ajax_post(self.course_setting_url, {'advanced_modules': {'value': ['']}})
    course = modulestore().get_course(self.course.id)
    self.assertNotIn(self.notes_tab, course.tabs)
