async def METHOD_NAME(
    partition_sda1_service: PartitionService, dbus_session_bus: MessageBus
):
    """Test deleting partition."""
    partition_sda1_service.Delete.calls.clear()
    sda1 = UDisks2Partition("/org/freedesktop/UDisks2/block_devices/sda1")
    with pytest.raises(DBusNotConnectedError):
        await sda1.delete(DeletePartitionOptions(tear_down=True))
    await sda1.connect(dbus_session_bus)
    await sda1.delete(DeletePartitionOptions(tear_down=True))
    assert partition_sda1_service.Delete.calls == [
        (
            {
                "tear-down": Variant("b", True),
                "auth.no_user_interaction": Variant("b", True),
            },
        )
    ]