# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.spm.preprocess import DARTEL
def test_DARTEL_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    paths=dict(),
    iteration_parameters=dict(field='warp.settings.param',
    ),
    use_v8struct=dict(min_ver='8',
    usedefault=True,
    ),
    use_mcr=dict(),
    template_prefix=dict(field='warp.settings.template',
    usedefault=True,
    ),
    image_files=dict(copyfile=False,
    mandatory=True,
    field='warp.images',
    ),
    matlab_cmd=dict(),
    optimization_parameters=dict(field='warp.settings.optim',
    ),
    mfile=dict(usedefault=True,
    ),
    regularization_form=dict(field='warp.settings.rform',
    ),
    )
    inputs = DARTEL.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_DARTEL_outputs():
    output_map = dict(dartel_flow_fields=dict(),
    template_files=dict(),
    final_template_file=dict(),
    )
    outputs = DARTEL.output_spec()

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