def METHOD_NAME(
    cobbler_api: CobblerAPI,
    create_distro: Callable[[str], distro.Distro],
    distro_collection: distros.Distros,
    input_new_name: str,
):
    # Arrange
    item1 = create_distro("old_name")
    distro_collection.add(item1)
    # Act
    distro_collection.rename(item1, input_new_name)
    # Assert
    assert input_new_name in distro_collection.listing
    assert distro_collection.listing[input_new_name].name == input_new_name