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


def test_FixTopology_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    copy_inputs=dict(mandatory=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ga=dict(argstr='-ga',
    ),
    hemisphere=dict(argstr='%s',
    mandatory=True,
    position=-1,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_brain=dict(mandatory=True,
    ),
    in_inflated=dict(mandatory=True,
    ),
    in_orig=dict(mandatory=True,
    ),
    in_wm=dict(mandatory=True,
    ),
    mgz=dict(argstr='-mgz',
    ),
    seed=dict(argstr='-seed %d',
    ),
    sphere=dict(argstr='-sphere %s',
    ),
    subject_id=dict(argstr='%s',
    mandatory=True,
    position=-2,
    usedefault=True,
    ),
    subjects_dir=dict(),
    terminal_output=dict(nohash=True,
    ),
    )
    inputs = FixTopology.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_FixTopology_outputs():
    output_map = dict(out_file=dict(),
    )
    outputs = FixTopology.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
