# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.dcm2nii import Dcm2nii
def test_Dcm2nii_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    gzip_output=dict(position=0,
    usedefault=True,
    argstr='-g',
    ),
    config_file=dict(position=7,
    genfile=True,
    argstr='-b %s',
    ),
    args=dict(position=9,
    argstr='%s',
    ),
    convert_all_pars=dict(position=8,
    argstr='-v',
    ),
    reorient_and_crop=dict(position=5,
    argstr='-x',
    ),
    reorient=dict(position=4,
    argstr='-r',
    ),
    source_names=dict(position=10,
    mandatory=True,
    argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    output_dir=dict(position=6,
    genfile=True,
    argstr='-o %s',
    ),
    anonymize=dict(position=2,
    argstr='-a',
    ),
    id_in_filename=dict(position=3,
    usedefault=True,
    argstr='-i',
    ),
    nii_output=dict(position=1,
    usedefault=True,
    argstr='-n',
    ),
    )
    inputs = Dcm2nii.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_Dcm2nii_outputs():
    output_map = dict(reoriented_and_cropped_files=dict(),
    converted_files=dict(),
    bvecs=dict(),
    bvals=dict(),
    reoriented_files=dict(),
    )
    outputs = Dcm2nii.output_spec()

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