# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.utils import Overlay
def test_Overlay_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    stat_thresh=dict(position=7,
    mandatory=True,
    argstr='%.2f %.2f',
    ),
    background_image=dict(position=4,
    mandatory=True,
    argstr='%s',
    ),
    args=dict(argstr='%s',
    ),
    show_negative_stats=dict(position=8,
    xor=['stat_image2'],
    argstr='%s',
    ),
    stat_image2=dict(position=9,
    xor=['show_negative_stats'],
    argstr='%s',
    ),
    bg_thresh=dict(mandatory=True,
    position=5,
    xor=('auto_thresh_bg', 'full_bg_range', 'bg_thresh'),
    argstr='%.3f %.3f',
    ),
    full_bg_range=dict(xor=('auto_thresh_bg', 'full_bg_range', 'bg_thresh'),
    position=5,
    mandatory=True,
    argstr='-A',
    ),
    auto_thresh_bg=dict(xor=('auto_thresh_bg', 'full_bg_range', 'bg_thresh'),
    position=5,
    mandatory=True,
    argstr='-a',
    ),
    use_checkerboard=dict(position=3,
    argstr='-c',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    transparency=dict(position=1,
    usedefault=True,
    argstr='%s',
    ),
    output_type=dict(),
    out_type=dict(position=2,
    usedefault=True,
    argstr='%s',
    ),
    stat_thresh2=dict(position=10,
    argstr='%.2f %.2f',
    ),
    stat_image=dict(position=6,
    mandatory=True,
    argstr='%s',
    ),
    out_file=dict(hash_files=False,
    genfile=True,
    position=-1,
    argstr='%s',
    ),
    )
    inputs = Overlay.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_Overlay_outputs():
    output_map = dict(out_file=dict(),
    )
    outputs = Overlay.output_spec()

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