# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.freesurfer.preprocess import ReconAll
def test_ReconAll_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    hemi=dict(argstr='-hemi %s',
    ),
    T1_files=dict(argstr='-i %s...',
    ),
    directive=dict(position=0,
    usedefault=True,
    argstr='-%s',
    ),
    subject_id=dict(argstr='-subjid %s',
    usedefault=True,
    ),
    args=dict(argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    subjects_dir=dict(argstr='-sd %s',
    hash_files=False,
    genfile=True,
    ),
    flags=dict(argstr='%s',
    ),
    openmp=dict(argstr='-openmp %d',
    ),
    T2_file=dict(argstr='-T2 %s',
    min_ver='5.3.0',
    ),
    )
    inputs = ReconAll.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_ReconAll_outputs():
    output_map = dict(curv=dict(loc='surf',
    ),
    curv_stats=dict(altkey='curv',
    loc='stats',
    ),
    sphere=dict(loc='surf',
    ),
    label=dict(altkey='*label',
    loc='label',
    ),
    BA_stats=dict(altkey='BA',
    loc='stats',
    ),
    sphere_reg=dict(altkey='sphere.reg',
    loc='surf',
    ),
    orig=dict(loc='mri',
    ),
    entorhinal_exvivo_stats=dict(altkey='entorhinal_exvivo',
    loc='stats',
    ),
    subject_id=dict(),
    brainmask=dict(loc='mri',
    ),
    thickness=dict(loc='surf',
    ),
    ribbon=dict(altkey='*ribbon',
    loc='mri',
    ),
    rawavg=dict(loc='mri',
    ),
    white=dict(loc='surf',
    ),
    sulc=dict(loc='surf',
    ),
    nu=dict(loc='mri',
    ),
    norm=dict(loc='mri',
    ),
    inflated=dict(loc='surf',
    ),
    wm=dict(loc='mri',
    ),
    wmparc=dict(loc='mri',
    ),
    T1=dict(loc='mri',
    ),
    volume=dict(loc='surf',
    ),
    subjects_dir=dict(),
    aseg=dict(loc='mri',
    ),
    aparc_stats=dict(altkey='aparc',
    loc='stats',
    ),
    brain=dict(loc='mri',
    ),
    aparc_a2009s_stats=dict(altkey='aparc.a2009s',
    loc='stats',
    ),
    annot=dict(altkey='*annot',
    loc='label',
    ),
    aseg_stats=dict(altkey='aseg',
    loc='stats',
    ),
    filled=dict(loc='mri',
    ),
    pial=dict(loc='surf',
    ),
    wmparc_stats=dict(altkey='wmparc',
    loc='stats',
    ),
    aparc_aseg=dict(altkey='aparc*aseg',
    loc='mri',
    ),
    smoothwm=dict(loc='surf',
    ),
    )
    outputs = ReconAll.output_spec()

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