'Verify that advanced problem types are not provided in problem component for libraries.'

def test_advanced_problem_types(self):

    lib = LibraryFactory.create()
    lib.save()
    problem_type_templates = next((component['templates'] for component in get_component_templates(lib, library=True) if (component['type'] == 'problem')), [])
    problem_type_categories = [problem_template['category'] for problem_template in problem_type_templates]
    for advance_problem_type in settings.ADVANCED_PROBLEM_TYPES:
        self.assertNotIn(advance_problem_type['component'], problem_type_categories)
