# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from __future__ import unicode_literals
from ..reg import RegAladin


def test_RegAladin_inputs():
    input_map = dict(aff_direct_flag=dict(argstr='-affDirect',
    ),
    aff_file=dict(argstr='-aff %s',
    name_source=['flo_file'],
    name_template='%s_aff.txt',
    ),
    args=dict(argstr='%s',
    ),
    cog_flag=dict(argstr='-cog',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    flo_file=dict(argstr='-flo %s',
    mandatory=True,
    ),
    flo_low_val=dict(argstr='-floLowThr %f',
    ),
    flo_up_val=dict(argstr='-floUpThr %f',
    ),
    fmask_file=dict(argstr='-fmask %s',
    ),
    gpuid_val=dict(argstr='-gpuid %i',
    ),
    i_val=dict(argstr='-pi %d',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_aff_file=dict(argstr='-inaff %s',
    ),
    ln_val=dict(argstr='-ln %d',
    ),
    lp_val=dict(argstr='-lp %d',
    ),
    maxit_val=dict(argstr='-maxit %d',
    ),
    nac_flag=dict(argstr='-nac',
    ),
    nosym_flag=dict(argstr='-noSym',
    ),
    omp_core_val=dict(argstr='-omp %i',
    usedefault=True,
    ),
    platform_val=dict(argstr='-platf %i',
    ),
    ref_file=dict(argstr='-ref %s',
    mandatory=True,
    ),
    ref_low_val=dict(argstr='-refLowThr %f',
    ),
    ref_up_val=dict(argstr='-refUpThr %f',
    ),
    res_file=dict(argstr='-res %s',
    name_source=['flo_file'],
    name_template='%s_res.nii.gz',
    ),
    rig_only_flag=dict(argstr='-rigOnly',
    ),
    rmask_file=dict(argstr='-rmask %s',
    ),
    smoo_f_val=dict(argstr='-smooF %f',
    ),
    smoo_r_val=dict(argstr='-smooR %f',
    ),
    terminal_output=dict(deprecated='1.0.0',
    nohash=True,
    ),
    v_val=dict(argstr='-pv %d',
    ),
    verbosity_off_flag=dict(argstr='-voff',
    ),
    )
    inputs = RegAladin.input_spec()

    for key, metadata in list(input_map.items()):
        for metakey, value in list(metadata.items()):
            assert getattr(inputs.traits()[key], metakey) == value


def test_RegAladin_outputs():
    output_map = dict(aff_file=dict(),
    avg_output=dict(),
    res_file=dict(),
    )
    outputs = RegAladin.output_spec()

    for key, metadata in list(output_map.items()):
        for metakey, value in list(metadata.items()):
            assert getattr(outputs.traits()[key], metakey) == value
