def test_TractographyLabelMapSeeding_inputs():
    input_map = dict(
        ignore_exception=dict(nohash=True, usedefault=True),
        minimumlength=dict(argstr="--minimumlength %f"),
        inputroi=dict(argstr="--inputroi %s"),
        stoppingcurvature=dict(argstr="--stoppingcurvature %f"),
        integrationsteplength=dict(argstr="--integrationsteplength %f"),
        args=dict(argstr="%s"),
        stoppingmode=dict(argstr="--stoppingmode %s"),
        useindexspace=dict(argstr="--useindexspace "),
        outputdirectory=dict(hash_files=False, argstr="--outputdirectory %s"),
        seedspacing=dict(argstr="--seedspacing %f"),
        label=dict(argstr="--label %d"),
        randomgrid=dict(argstr="--randomgrid "),
        environ=dict(nohash=True, usedefault=True),
        clthreshold=dict(argstr="--clthreshold %f"),
        stoppingvalue=dict(argstr="--stoppingvalue %f"),
        InputVolume=dict(position=-2, argstr="%s"),
        writetofile=dict(argstr="--writetofile "),
        maximumlength=dict(argstr="--maximumlength %f"),
        OutputFibers=dict(position=-1, hash_files=False, argstr="%s"),
        terminal_output=dict(mandatory=True, nohash=True),
        name=dict(argstr="--name %s"),
    )
    inputs = TractographyLabelMapSeeding.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
def test_TractographyLabelMapSeeding_outputs():
    output_map = dict(OutputFibers=dict(position=-1), outputdirectory=dict())
    outputs = TractographyLabelMapSeeding.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
def test_TractographyLabelMapSeeding_inputs():
    input_map = dict(InputVolume=dict(argstr='%s',
    position=-2,
    ),
    OutputFibers=dict(argstr='%s',
    hash_files=False,
    position=-1,
    ),
    args=dict(argstr='%s',
    ),
    clthreshold=dict(argstr='--clthreshold %f',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    inputroi=dict(argstr='--inputroi %s',
    ),
    integrationsteplength=dict(argstr='--integrationsteplength %f',
    ),
    label=dict(argstr='--label %d',
    ),
    maximumlength=dict(argstr='--maximumlength %f',
    ),
    minimumlength=dict(argstr='--minimumlength %f',
    ),
    name=dict(argstr='--name %s',
    ),
    outputdirectory=dict(argstr='--outputdirectory %s',
    hash_files=False,
    ),
    randomgrid=dict(argstr='--randomgrid ',
    ),
    seedspacing=dict(argstr='--seedspacing %f',
    ),
    stoppingcurvature=dict(argstr='--stoppingcurvature %f',
    ),
    stoppingmode=dict(argstr='--stoppingmode %s',
    ),
    stoppingvalue=dict(argstr='--stoppingvalue %f',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    useindexspace=dict(argstr='--useindexspace ',
    ),
    writetofile=dict(argstr='--writetofile ',
    ),
    )
    inputs = TractographyLabelMapSeeding.input_spec()

    for key, metadata in input_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(inputs.traits()[key], metakey), value
def test_TractographyLabelMapSeeding_outputs():
    output_map = dict(OutputFibers=dict(position=-1,
    ),
    outputdirectory=dict(),
    )
    outputs = TractographyLabelMapSeeding.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value