# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.io import FreeSurferSource
def test_FreeSurferSource_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    subject_id=dict(mandatory=True,
    ),
    hemi=dict(usedefault=True,
    ),
    subjects_dir=dict(mandatory=True,
    ),
    )
    inputs = FreeSurferSource.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_FreeSurferSource_outputs():
    output_map = dict(curv=dict(loc='surf',
    ),
    curv_stats=dict(altkey='curv',
    loc='stats',
    ),
    annot=dict(altkey='*annot',
    loc='label',
    ),
    sphere=dict(loc='surf',
    ),
    inflated=dict(loc='surf',
    ),
    BA_stats=dict(altkey='BA',
    loc='stats',
    ),
    ribbon=dict(altkey='*ribbon',
    loc='mri',
    ),
    sulc=dict(loc='surf',
    ),
    entorhinal_exvivo_stats=dict(altkey='entorhinal_exvivo',
    loc='stats',
    ),
    brainmask=dict(loc='mri',
    ),
    thickness=dict(loc='surf',
    ),
    sphere_reg=dict(altkey='sphere.reg',
    loc='surf',
    ),
    rawavg=dict(loc='mri',
    ),
    white=dict(loc='surf',
    ),
    orig=dict(loc='mri',
    ),
    nu=dict(loc='mri',
    ),
    norm=dict(loc='mri',
    ),
    wm=dict(loc='mri',
    ),
    wmparc=dict(loc='mri',
    ),
    T1=dict(loc='mri',
    ),
    volume=dict(loc='surf',
    ),
    aseg=dict(loc='mri',
    ),
    aparc_stats=dict(altkey='aparc',
    loc='stats',
    ),
    brain=dict(loc='mri',
    ),
    aparc_a2009s_stats=dict(altkey='aparc.a2009s',
    loc='stats',
    ),
    label=dict(altkey='*label',
    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 = FreeSurferSource.output_spec()

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