# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.epi import PrepareFieldmap
def test_PrepareFieldmap_inputs():
    input_map = dict(delta_TE=dict(mandatory=True,
    usedefault=True,
    position=-2,
    argstr='%f',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    out_fieldmap=dict(position=5,
    argstr='%s',
    ),
    args=dict(argstr='%s',
    ),
    nocheck=dict(position=-1,
    argstr='--nocheck',
    usedefault=True,
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    in_phase=dict(position=2,
    mandatory=True,
    argstr='%s',
    ),
    in_magnitude=dict(position=3,
    mandatory=True,
    argstr='%s',
    ),
    output_type=dict(),
    scanner=dict(position=1,
    usedefault=True,
    argstr='%s',
    ),
    )
    inputs = PrepareFieldmap.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_PrepareFieldmap_outputs():
    output_map = dict(out_fieldmap=dict(),
    )
    outputs = PrepareFieldmap.output_spec()

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