# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.freesurfer.utils import Tkregister2

def test_Tkregister2_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    fsl=dict(argstr='--fsl %s',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    mov=dict(argstr='--mov %s',
    mandatory=True,
    ),
    noedit=dict(argstr='--noedit',
    ),
    out_reg_file=dict(argstr='--reg %s',
    mandatory=True,
    name_source='fsl',
    name_template='%s.dat',
    ),
    subject_id=dict(argstr='--s %s',
    mandatory=True,
    ),
    subjects_dir=dict(),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    )
    inputs = Tkregister2.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_Tkregister2_outputs():
    output_map = dict(out_reg_file=dict(),
    )
    outputs = Tkregister2.output_spec()

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


# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.freesurfer.utils import Tkregister2

def test_Tkregister2_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    fsl_in_matrix=dict(argstr='--fsl %s',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    moving_image=dict(argstr='--mov %s',
    mandatory=True,
    ),
    noedit=dict(argstr='--noedit',
    usedefault=True,
    ),
    reg_file=dict(argstr='--reg %s',
    mandatory=True,
    name_source='fsl',
    name_template='%s.dat',
    ),
    subject_id=dict(argstr='--s %s',
    mandatory=True,
    ),
    subjects_dir=dict(argstr='--sd %s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    )
    inputs = Tkregister2.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_Tkregister2_outputs():
    output_map = dict(reg_file=dict(),
    )
    outputs = Tkregister2.output_spec()

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


create automatic test