'Test that support levels can be set on basic component templates.'

def test_basic_components_support_levels(self):

    XBlockStudioConfigurationFlag.objects.create(enabled=True)
    self.templates = get_component_templates(self.course)
    self._verify_basic_component('discussion', 'Discussion', 'ps')
    self.assertEqual([], self.get_templates_of_type('video'))
    supported_problem_templates = [{'boilerplate_name': None, 'category': 'drag-and-drop-v2', 'display_name': u'Drag    and    Drop', 'hinted': False, 'support_level': u'fs', 'tab': 'advanced'}]
    self.assertEqual(supported_problem_templates, self.get_templates_of_type('problem'))
    self.course.allow_unsupported_xblocks = True
    self.templates = get_component_templates(self.course)
    self._verify_basic_component('video', 'Video', 'us')
    problem_templates = self.get_templates_of_type('problem')
    problem_no_boilerplate = self.get_template(problem_templates, u'Blank    Advanced    Problem')
    self.assertIsNotNone(problem_no_boilerplate)
    self.assertEqual('us', problem_no_boilerplate['support_level'])
    XBlockConfiguration.objects.create(name='video', enabled=False)
    self.templates = get_component_templates(self.course)
    self.assertIsNone(self.get_templates_of_type('video'))
