# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.freesurfer.model import MS_LDA
def test_MS_LDA_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    conform=dict(argstr='-conform',
    ),
    weight_file=dict(mandatory=True,
    argstr='-weight %s',
    ),
    lda_labels=dict(mandatory=True,
    sep=' ',
    argstr='-lda %s',
    ),
    vol_synth_file=dict(mandatory=True,
    argstr='-synth %s',
    ),
    shift=dict(argstr='-shift %d',
    ),
    args=dict(argstr='%s',
    ),
    mask_file=dict(argstr='-mask %s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    label_file=dict(argstr='-label %s',
    ),
    subjects_dir=dict(),
    images=dict(copyfile=False,
    mandatory=True,
    position=-1,
    argstr='%s',
    ),
    use_weights=dict(argstr='-W',
    ),
    )
    inputs = MS_LDA.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_MS_LDA_outputs():
    output_map = dict(weight_file=dict(),
    vol_synth_file=dict(),
    )
    outputs = MS_LDA.output_spec()

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