# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.epi import EPIDeWarp
def test_EPIDeWarp_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    exf_file=dict(argstr='--exf %s',
    ),
    dph_file=dict(mandatory=True,
    argstr='--dph %s',
    ),
    esp=dict(usedefault=True,
    argstr='--esp %s',
    ),
    mag_file=dict(position=0,
    mandatory=True,
    argstr='--mag %s',
    ),
    nocleanup=dict(usedefault=True,
    argstr='--nocleanup',
    ),
    args=dict(argstr='%s',
    ),
    epi_file=dict(argstr='--epi %s',
    ),
    tmpdir=dict(argstr='--tmpdir %s',
    genfile=True,
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    exfdw=dict(argstr='--exfdw %s',
    genfile=True,
    ),
    output_type=dict(),
    cleanup=dict(argstr='--cleanup',
    ),
    epidw=dict(argstr='--epidw %s',
    genfile=False,
    ),
    sigma=dict(argstr='--sigma %s',
    usedefault=True,
    ),
    vsm=dict(argstr='--vsm %s',
    genfile=True,
    ),
    tediff=dict(usedefault=True,
    argstr='--tediff %s',
    ),
    )
    inputs = EPIDeWarp.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_EPIDeWarp_outputs():
    output_map = dict(unwarped_file=dict(),
    vsm_file=dict(),
    exfdw=dict(),
    exf_mask=dict(),
    )
    outputs = EPIDeWarp.output_spec()

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