# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.preprocess import FAST
def test_FAST_inputs():
    input_map = dict(number_classes=dict(argstr='-n %d',
    ),
    out_basename=dict(argstr='-o %s',
    ),
    hyper=dict(argstr='-H %.2f',
    ),
    verbose=dict(argstr='-v',
    ),
    init_seg_smooth=dict(argstr='-f %.3f',
    ),
    in_files=dict(copyfile=False,
    mandatory=True,
    position=-1,
    argstr='%s',
    ),
    no_pve=dict(argstr='--nopve',
    ),
    output_biascorrected=dict(argstr='-B',
    ),
    mixel_smooth=dict(argstr='-R %.2f',
    ),
    segments=dict(argstr='-g',
    ),
    iters_afterbias=dict(argstr='-O %d',
    ),
    bias_lowpass=dict(units='mm',
    argstr='-l %d',
    ),
    other_priors=dict(argstr='-A %s',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    img_type=dict(argstr='-t %d',
    ),
    args=dict(argstr='%s',
    ),
    probability_maps=dict(argstr='-p',
    ),
    manual_seg=dict(argstr='-s %s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    output_biasfield=dict(argstr='-b',
    ),
    no_bias=dict(argstr='-N',
    ),
    use_priors=dict(argstr='-P',
    ),
    init_transform=dict(argstr='-a %s',
    ),
    segment_iters=dict(argstr='-W %d',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    output_type=dict(),
    bias_iters=dict(argstr='-I %d',
    ),
    )
    inputs = FAST.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_FAST_outputs():
    output_map = dict(partial_volume_files=dict(),
    tissue_class_files=dict(),
    mixeltype=dict(),
    restored_image=dict(),
    tissue_class_map=dict(),
    partial_volume_map=dict(),
    probability_maps=dict(),
    bias_field=dict(),
    )
    outputs = FAST.output_spec()

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