<gh_stars>1-10
# 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(anonymize=dict(argstr='-a',
    position=2,
    ),
    args=dict(argstr='%s',
    position=9,
    ),
    config_file=dict(argstr='-b %s',
    genfile=True,
    position=7,
    ),
    convert_all_pars=dict(argstr='-v',
    position=8,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    gzip_output=dict(argstr='-g',
    position=0,
    usedefault=True,
    ),
    id_in_filename=dict(argstr='-i',
    position=3,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    nii_output=dict(argstr='-n',
    position=1,
    usedefault=True,
    ),
    output_dir=dict(argstr='-o %s',
    genfile=True,
    position=6,
    ),
    reorient=dict(argstr='-r',
    position=4,
    ),
    reorient_and_crop=dict(argstr='-x',
    position=5,
    ),
    source_names=dict(argstr='%s',
    copyfile=False,
    mandatory=True,
    position=10,
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    )
    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(bvals=dict(),
    bvecs=dict(),
    converted_files=dict(),
    reoriented_and_cropped_files=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


# 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(anonymize=dict(argstr='-a',
    position=2,
    ),
    args=dict(argstr='%s',
    position=9,
    ),
    config_file=dict(argstr='-b %s',
    genfile=True,
    position=7,
    ),
    convert_all_pars=dict(argstr='-v',
    position=8,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    gzip_output=dict(argstr='-g',
    position=0,
    usedefault=True,
    ),
    id_in_filename=dict(argstr='-i',
    position=3,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    nii_output=dict(argstr='-n',
    position=1,
    usedefault=True,
    ),
    output_dir=dict(argstr='-o %s',
    genfile=True,
    position=6,
    ),
    reorient=dict(argstr='-r',
    position=4,
    ),
    reorient_and_crop=dict(argstr='-x',
    position=5,
    ),
    source_names=dict(argstr='%s',
    copyfile=False,
    mandatory=True,
    position=10,
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    )
    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(bvals=dict(),
    bvecs=dict(),
    converted_files=dict(),
    reoriented_and_cropped_files=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
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT