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


def test_Aparc2Aseg_inputs():
    input_map = dict(a2009s=dict(argstr='--a2009s',
    ),
    args=dict(argstr='%s',
    ),
    aseg=dict(argstr='--aseg %s',
    ),
    copy_inputs=dict(),
    ctxseg=dict(argstr='--ctxseg %s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    filled=dict(),
    hypo_wm=dict(argstr='--hypo-as-wm',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    label_wm=dict(argstr='--labelwm',
    ),
    lh_annotation=dict(mandatory=True,
    ),
    lh_pial=dict(mandatory=True,
    ),
    lh_ribbon=dict(mandatory=True,
    ),
    lh_white=dict(mandatory=True,
    ),
    out_file=dict(argstr='--o %s',
    mandatory=True,
    ),
    rh_annotation=dict(mandatory=True,
    ),
    rh_pial=dict(mandatory=True,
    ),
    rh_ribbon=dict(mandatory=True,
    ),
    rh_white=dict(mandatory=True,
    ),
    ribbon=dict(mandatory=True,
    ),
    rip_unknown=dict(argstr='--rip-unknown',
    ),
    subject_id=dict(argstr='--s %s',
    mandatory=True,
    usedefault=True,
    ),
    subjects_dir=dict(),
    terminal_output=dict(nohash=True,
    ),
    volmask=dict(argstr='--volmask',
    ),
    )
    inputs = Aparc2Aseg.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_Aparc2Aseg_outputs():
    output_map = dict(out_file=dict(argstr='%s',
    ),
    )
    outputs = Aparc2Aseg.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
