def METHOD_NAME(
    cobbler_api,
    create_distro,
    create_profile,
    create_system,
    input_uuid,
    input_attribute_name,
    input_value,
    expected_exception,
    expected_result,
):
    # Arrange
    test_distro = create_distro()
    test_profile = create_profile(test_distro.name)
    test_profile.kernel_options = "a=5"
    cobbler_api.add_profile(test_profile)
    test_system = create_system(test_profile.name)
    if input_uuid == "":
        input_uuid = test_system.uid
    # Act
    with expected_exception:
        cobbler_api.set_item_resolved_value(
            input_uuid, input_attribute_name, input_value
        )
        # Assert
        assert test_system.to_dict().get(input_attribute_name) == expected_result