# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.freesurfer.preprocess import UnpackSDICOMDir
def test_UnpackSDICOMDir_inputs():
    input_map = dict(seq_config=dict(mandatory=True,
    argstr='-seqcfg %s',
    xor=('run_info', 'config', 'seq_config'),
    ),
    spm_zeropad=dict(argstr='-nspmzeropad %d',
    ),
    dir_structure=dict(argstr='-%s',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    args=dict(argstr='%s',
    ),
    no_info_dump=dict(argstr='-noinfodump',
    ),
    run_info=dict(xor=('run_info', 'config', 'seq_config'),
    mandatory=True,
    argstr='-run %d %s %s %s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    output_dir=dict(argstr='-targ %s',
    ),
    subjects_dir=dict(),
    scan_only=dict(argstr='-scanonly %s',
    ),
    log_file=dict(argstr='-log %s',
    ),
    config=dict(mandatory=True,
    argstr='-cfg %s',
    xor=('run_info', 'config', 'seq_config'),
    ),
    source_dir=dict(mandatory=True,
    argstr='-src %s',
    ),
    no_unpack_err=dict(argstr='-no-unpackerr',
    ),
    )
    inputs = UnpackSDICOMDir.input_spec()

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