# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.meshfix import MeshFix
def test_MeshFix_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    cut_outer=dict(argstr='--cut-outer %d',
    ),
    x_shift=dict(argstr='--smooth %d',
    ),
    remove_handles=dict(argstr='--remove-handles',
    ),
    join_closest_components=dict(xor=['join_closest_components'],
    argstr='-jc',
    ),
    dilation=dict(argstr='--dilate %d',
    ),
    in_file2=dict(position=2,
    argstr='%s',
    ),
    in_file1=dict(position=1,
    mandatory=True,
    argstr='%s',
    ),
    finetuning_outwards=dict(argstr='--fineTuneIn ',
    xor=['finetuning_inwards'],
    requires=['finetuning_distance', 'finetuning_substeps'],
    ),
    decouple_outin=dict(argstr='--decouple-outin %d',
    ),
    dont_clean=dict(argstr='--no-clean',
    ),
    number_of_biggest_shells=dict(argstr='--shells %d',
    ),
    finetuning_distance=dict(requires=['finetuning_substeps'],
    argstr='%f',
    ),
    save_as_freesurfer_mesh=dict(xor=['save_as_vrml', 'save_as_stl'],
    argstr='--fsmesh',
    ),
    uniform_remeshing_steps=dict(requires=['uniform_remeshing_vertices'],
    argstr='-u %d',
    ),
    save_as_stl=dict(xor=['save_as_vmrl', 'save_as_freesurfer_mesh'],
    argstr='--stl',
    ),
    cut_inner=dict(argstr='--cut-inner %d',
    ),
    out_filename=dict(argstr='-o %s',
    genfile=True,
    ),
    finetuning_inwards=dict(requires=['finetuning_distance', 'finetuning_substeps'],
    argstr='--fineTuneIn ',
    ),
    decouple_outout=dict(argstr='--decouple-outout %d',
    ),
    args=dict(argstr='%s',
    ),
    set_intersections_to_one=dict(argstr='--intersect',
    ),
    save_as_vmrl=dict(xor=['save_as_stl', 'save_as_freesurfer_mesh'],
    argstr='--wrl',
    ),
    uniform_remeshing_vertices=dict(requires=['uniform_remeshing_steps'],
    argstr='--vertices %d',
    ),
    finetuning_substeps=dict(requires=['finetuning_distance'],
    argstr='%d',
    ),
    quiet_mode=dict(argstr='-q',
    ),
    laplacian_smoothing_steps=dict(argstr='--smooth %d',
    ),
    epsilon_angle=dict(argstr='-a %f',
    ),
    join_overlapping_largest_components=dict(xor=['join_closest_components'],
    argstr='-j',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    decouple_inin=dict(argstr='--decouple-inin %d',
    ),
    output_type=dict(usedefault=True,
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    )
    inputs = MeshFix.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_MeshFix_outputs():
    output_map = dict(mesh_file=dict(),
    )
    outputs = MeshFix.output_spec()

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