# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.freesurfer.model import Concatenate

def test_Concatenate_inputs():
    input_map = dict(add_val=dict(argstr='--add %f',
    ),
    args=dict(argstr='%s',
    ),
    combine=dict(argstr='--combine',
    ),
    concatenated_file=dict(argstr='--o %s',
    genfile=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    gmean=dict(argstr='--gmean %d',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_files=dict(argstr='--i %s...',
    mandatory=True,
    ),
    keep_dtype=dict(argstr='--keep-datatype',
    ),
    mask_file=dict(argstr='--mask %s',
    ),
    max_bonfcor=dict(argstr='--max-bonfcor',
    ),
    max_index=dict(argstr='--max-index',
    ),
    mean_div_n=dict(argstr='--mean-div-n',
    ),
    multiply_by=dict(argstr='--mul %f',
    ),
    multiply_matrix_file=dict(argstr='--mtx %s',
    ),
    paired_stats=dict(argstr='--paired-%s',
    ),
    sign=dict(argstr='--%s',
    ),
    sort=dict(argstr='--sort',
    ),
    stats=dict(argstr='--%s',
    ),
    subjects_dir=dict(),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    vote=dict(argstr='--vote',
    ),
    )
    inputs = Concatenate.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_Concatenate_outputs():
    output_map = dict(concatenated_file=dict(),
    )
    outputs = Concatenate.output_spec()

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

