'Test that xblocks that have Studio support disabled do not show on the "new component" menu.'

def test_cannot_create_deprecated_problems(self):

    XBlockStudioConfiguration.objects.create(name='poll', enabled=False, support_level='fs')
    XBlockStudioConfigurationFlag.objects.create(enabled=True)
    self.course.advanced_modules.extend(['annotatable', 'poll', 'survey'])
    self._verify_advanced_xblocks(['Survey'], ['ps'])
    self.course.allow_unsupported_xblocks = True
    self._verify_advanced_xblocks(['Annotation', 'Survey'], ['us', 'ps'])
    XBlockConfiguration.objects.create(name='annotatable', enabled=False)
    self._verify_advanced_xblocks(['Survey'], ['ps'])
