def METHOD_NAME(self, group_for_function):
    protected_variables = f"""
    projects_and_groups:
      {group_for_function.full_path}/*:
        group_variables:
          foo:
            key: FOO
            value: 123
            protected: true
    """
    run_gitlabform(protected_variables, group_for_function)
    variable = group_for_function.variables.get("FOO")
    assert variable.value == "123"
    assert variable.protected