# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.preprocess import SliceTimer
def test_SliceTimer_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    index_dir=dict(argstr='--down',
    ),
    args=dict(argstr='%s',
    ),
    out_file=dict(argstr='--out=%s',
    hash_files=False,
    genfile=True,
    ),
    custom_timings=dict(argstr='--tcustom=%s',
    ),
    time_repetition=dict(argstr='--repeat=%f',
    ),
    slice_direction=dict(argstr='--direction=%d',
    ),
    custom_order=dict(argstr='--ocustom=%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(position=0,
    mandatory=True,
    argstr='--in=%s',
    ),
    global_shift=dict(argstr='--tglobal',
    ),
    output_type=dict(),
    interleaved=dict(argstr='--odd',
    ),
    )
    inputs = SliceTimer.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_SliceTimer_outputs():
    output_map = dict(slice_time_corrected_file=dict(),
    )
    outputs = SliceTimer.output_spec()

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