# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.utils import ExtractROI
def test_ExtractROI_inputs():
    input_map = dict(z_size=dict(position=7,
    argstr='%d',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    t_min=dict(position=8,
    argstr='%d',
    ),
    y_min=dict(position=4,
    argstr='%d',
    ),
    y_size=dict(position=5,
    argstr='%d',
    ),
    args=dict(argstr='%s',
    ),
    z_min=dict(position=6,
    argstr='%d',
    ),
    t_size=dict(position=9,
    argstr='%d',
    ),
    x_size=dict(position=3,
    argstr='%d',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(position=0,
    mandatory=True,
    argstr='%s',
    ),
    x_min=dict(position=2,
    argstr='%d',
    ),
    output_type=dict(),
    crop_list=dict(argstr='%s',
    xor=['x_min', 'x_size', 'y_min', 'y_size', 'z_min', 'z_size', 't_min', 't_size'],
    position=2,
    ),
    roi_file=dict(hash_files=False,
    genfile=True,
    position=1,
    argstr='%s',
    ),
    )
    inputs = ExtractROI.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_ExtractROI_outputs():
    output_map = dict(roi_file=dict(),
    )
    outputs = ExtractROI.output_spec()

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