'Verify the names of the advanced xblocks showing in the "new component" menu.'

def _verify_advanced_xblocks(self, expected_xblocks, expected_support_levels):

    templates = get_component_templates(self.course)
    button_names = [template['display_name'] for template in templates]
    self.assertIn('Advanced', button_names)
    self.assertEqual(len(templates[0]['templates']), len(expected_xblocks))
    template_display_names = [template['display_name'] for template in templates[0]['templates']]
    self.assertEqual(template_display_names, expected_xblocks)
    template_support_levels = [template['support_level'] for template in templates[0]['templates']]
    self.assertEqual(template_support_levels, expected_support_levels)
