# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.utils import ImageMaths
def test_ImageMaths_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    op_string=dict(position=2,
    argstr='%s',
    ),
    out_data_type=dict(position=5,
    argstr='-odt %s',
    ),
    out_file=dict(position=4,
    hash_files=False,
    genfile=True,
    argstr='%s',
    ),
    args=dict(argstr='%s',
    ),
    in_file2=dict(position=3,
    argstr='%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(position=1,
    mandatory=True,
    argstr='%s',
    ),
    output_type=dict(),
    suffix=dict(),
    )
    inputs = ImageMaths.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_ImageMaths_outputs():
    output_map = dict(out_file=dict(),
    )
    outputs = ImageMaths.output_spec()

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