async def METHOD_NAME(
    partition_table_sda_service: PartitionTableService, dbus_session_bus: MessageBus
):
    """Test create partition."""
    partition_table_sda_service.CreatePartition.calls.clear()
    sda = UDisks2PartitionTable("/org/freedesktop/UDisks2/block_devices/sda")
    await sda.connect(dbus_session_bus)
    assert (
        await sda.create_partition(
            offset=0,
            size=1000000,
            type_="0FC63DAF-8483-4772-8E79-3D69D8477DE4",
            name="hassos-data",
            options=CreatePartitionOptions(partition_type="primary"),
        )
        == "/org/freedesktop/UDisks2/block_devices/sda1"
    )
    assert partition_table_sda_service.CreatePartition.calls == [
        (
            0,
            1000000,
            "0FC63DAF-8483-4772-8E79-3D69D8477DE4",
            "hassos-data",
            {
                "partition-type": Variant("s", "primary"),
                "auth.no_user_interaction": Variant("b", True),
            },
        )
    ]