# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.freesurfer.preprocess import BBRegister
def test_BBRegister_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    init_reg_file=dict(xor=['init'],
    mandatory=True,
    ),
    reg_frame=dict(xor=['reg_middle_frame'],
    argstr='--frame %d',
    ),
    registered_file=dict(argstr='--o %s',
    ),
    out_fsl_file=dict(argstr='--fslmat %s',
    ),
    contrast_type=dict(mandatory=True,
    argstr='--%s',
    ),
    subject_id=dict(mandatory=True,
    argstr='--s %s',
    ),
    args=dict(argstr='%s',
    ),
    out_reg_file=dict(argstr='--reg %s',
    genfile=True,
    ),
    intermediate_file=dict(argstr='--int %s',
    ),
    init=dict(xor=['init_reg_file'],
    mandatory=True,
    argstr='--init-%s',
    ),
    source_file=dict(copyfile=False,
    mandatory=True,
    argstr='--mov %s',
    ),
    reg_middle_frame=dict(xor=['reg_frame'],
    argstr='--mid-frame',
    ),
    subjects_dir=dict(),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    spm_nifti=dict(argstr='--spm-nii',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    epi_mask=dict(argstr='--epi-mask',
    ),
    )
    inputs = BBRegister.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_BBRegister_outputs():
    output_map = dict(out_reg_file=dict(),
    min_cost_file=dict(),
    registered_file=dict(),
    out_fsl_file=dict(),
    )
    outputs = BBRegister.output_spec()

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