# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ....testing import assert_equal
from ..minc import NlpFit


def test_NlpFit_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    clobber=dict(argstr='-clobber',
    usedefault=True,
    ),
    config_file=dict(argstr='-config_file %s',
    mandatory=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    init_xfm=dict(argstr='-init_xfm %s',
    mandatory=True,
    ),
    input_grid_files=dict(),
    output_xfm=dict(argstr='%s',
    genfile=True,
    hash_files=False,
    keep_extension=False,
    name_source=['source'],
    name_template='%s_nlpfit.mnc',
    position=-1,
    ),
    source=dict(argstr='%s',
    mandatory=True,
    position=-3,
    ),
    source_mask=dict(argstr='-source_mask %s',
    mandatory=True,
    ),
    target=dict(argstr='%s',
    mandatory=True,
    position=-2,
    ),
    terminal_output=dict(nohash=True,
    ),
    verbose=dict(argstr='-verbose',
    ),
    )
    inputs = NlpFit.input_spec()

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


def test_NlpFit_outputs():
    output_map = dict(output_grid=dict(),
    output_xfm=dict(),
    )
    outputs = NlpFit.output_spec()

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

# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ....testing import assert_equal
from ..minc import NlpFit


def test_NlpFit_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    clobber=dict(argstr='-clobber',
    usedefault=True,
    ),
    config_file=dict(argstr='-config_file %s',
    mandatory=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    init_xfm=dict(argstr='-init_xfm %s',
    mandatory=True,
    ),
    input_grid_files=dict(),
    output_xfm=dict(argstr='%s',
    genfile=True,
    position=-1,
    ),
    source=dict(argstr='%s',
    mandatory=True,
    position=-3,
    ),
    source_mask=dict(argstr='-source_mask %s',
    mandatory=True,
    ),
    target=dict(argstr='%s',
    mandatory=True,
    position=-2,
    ),
    terminal_output=dict(nohash=True,
    ),
    verbose=dict(argstr='-verbose',
    ),
    )
    inputs = NlpFit.input_spec()

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


def test_NlpFit_outputs():
    output_map = dict(output_grid=dict(),
    output_xfm=dict(),
    )
    outputs = NlpFit.output_spec()

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

Update tests.