# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.spm.preprocess import SliceTiming
def test_SliceTiming_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    paths=dict(),
    mfile=dict(usedefault=True,
    ),
    use_v8struct=dict(min_ver='8',
    usedefault=True,
    ),
    time_repetition=dict(field='tr',
    mandatory=True,
    ),
    out_prefix=dict(field='prefix',
    usedefault=True,
    ),
    in_files=dict(copyfile=False,
    mandatory=True,
    field='scans',
    ),
    num_slices=dict(field='nslices',
    mandatory=True,
    ),
    matlab_cmd=dict(),
    ref_slice=dict(field='refslice',
    mandatory=True,
    ),
    use_mcr=dict(),
    time_acquisition=dict(field='ta',
    mandatory=True,
    ),
    slice_order=dict(field='so',
    mandatory=True,
    ),
    )
    inputs = SliceTiming.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_SliceTiming_outputs():
    output_map = dict(timecorrected_files=dict(),
    )
    outputs = SliceTiming.output_spec()

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