def METHOD_NAME(specs_with_security_obj_in_root_and_empty_security_spec):
    resources = build_resources(
        Spec(
            specs_with_security_obj_in_root_and_empty_security_spec,
        ),
    )
    resource = resources.get('pet')
    assert resource is not None
    operation = getattr(resource, 'findPetsByStatus')
    assert operation is not None
    assert len(operation.security_requirements) == 0