async def METHOD_NAME(
    partition_sda1_service: PartitionService, dbus_session_bus: MessageBus
):
    """Test setting partition name."""
    partition_sda1_service.SetName.calls.clear()
    sda1 = UDisks2Partition("/org/freedesktop/UDisks2/block_devices/sda1")
    with pytest.raises(DBusNotConnectedError):
        await sda1.set_name("test")
    await sda1.connect(dbus_session_bus)
    await sda1.set_name("test")
    assert partition_sda1_service.SetName.calls == [
        ("test", {"auth.no_user_interaction": Variant("b", True)})
    ]