# 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(args=dict(argstr='%s',
    ),
    delta_TE=dict(argstr='%f',
    mandatory=True,
    position=-2,
    usedefault=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_magnitude=dict(argstr='%s',
    mandatory=True,
    position=3,
    ),
    in_phase=dict(argstr='%s',
    mandatory=True,
    position=2,
    ),
    nocheck=dict(argstr='--nocheck',
    position=-1,
    usedefault=True,
    ),
    out_fieldmap=dict(argstr='%s',
    position=5,
    ),
    output_type=dict(),
    scanner=dict(argstr='%s',
    position=1,
    usedefault=True,
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    )
    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


# 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(args=dict(argstr='%s',
    ),
    delta_TE=dict(argstr='%f',
    mandatory=True,
    position=-2,
    usedefault=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_magnitude=dict(argstr='%s',
    mandatory=True,
    position=3,
    ),
    in_phase=dict(argstr='%s',
    mandatory=True,
    position=2,
    ),
    nocheck=dict(argstr='--nocheck',
    position=-1,
    usedefault=True,
    ),
    out_fieldmap=dict(argstr='%s',
    position=4,
    ),
    output_type=dict(),
    scanner=dict(argstr='%s',
    position=1,
    usedefault=True,
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    )
    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


add PrepareFieldmap test