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