'Test that there will be no `Advanced` button on unit page if xblocks have disabled
Studio support given that they are the only modules in `Advanced Module List`'

def test_deprecated_no_advance_component_button(self):

    XBlockStudioConfiguration.objects.create(name='poll', enabled=False, support_level='fs')
    XBlockStudioConfiguration.objects.create(name='survey', enabled=False, support_level='fs')
    XBlockStudioConfigurationFlag.objects.create(enabled=True)
    self.course.advanced_modules.extend(['poll', 'survey'])
    templates = get_component_templates(self.course)
    button_names = [template['display_name'] for template in templates]
    self.assertNotIn('Advanced', button_names)
