# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.epi import Eddy
def test_Eddy_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    niter=dict(argstr='--niter=%s',
    ),
    in_acqp=dict(mandatory=True,
    argstr='--acqp=%s',
    ),
    out_base=dict(argstr='--out=%s',
    ),
    args=dict(argstr='%s',
    ),
    in_index=dict(mandatory=True,
    argstr='--index=%s',
    ),
    in_mask=dict(mandatory=True,
    argstr='--mask=%s',
    ),
    in_topup=dict(argstr='--topup=%s',
    ),
    session=dict(argstr='--session=%s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    repol=dict(argstr='--repol',
    ),
    output_type=dict(),
    in_bval=dict(mandatory=True,
    argstr='--bvals=%s',
    ),
    flm=dict(argstr='--flm=%s',
    ),
    in_bvec=dict(mandatory=True,
    argstr='--bvecs=%s',
    ),
    fwhm=dict(argstr='--fwhm=%s',
    ),
    method=dict(argstr='--resamp=%s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    in_file=dict(mandatory=True,
    argstr='--imain=%s',
    ),
    )
    inputs = Eddy.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_Eddy_outputs():
    output_map = dict(out_corrected=dict(),
    out_parameter=dict(),
    )
    outputs = Eddy.output_spec()

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