# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.afni.preprocess import TCorr1D
def test_TCorr1D_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    spearman=dict(position=1,
    xor=['pearson', 'quadrant', 'ktaub'],
    argstr=' -spearman',
    ),
    pearson=dict(position=1,
    xor=['spearman', 'quadrant', 'ktaub'],
    argstr=' -pearson',
    ),
    out_file=dict(name_source='xset',
    argstr='-prefix %s',
    name_template='%s_correlation.nii.gz',
    keep_extension=True,
    ),
    y_1d=dict(position=-1,
    mandatory=True,
    argstr=' %s',
    ),
    ktaub=dict(position=1,
    xor=['pearson', 'spearman', 'quadrant'],
    argstr=' -ktaub',
    ),
    args=dict(argstr='%s',
    ),
    xset=dict(copyfile=False,
    mandatory=True,
    position=-2,
    argstr=' %s',
    ),
    outputtype=dict(),
    quadrant=dict(position=1,
    xor=['pearson', 'spearman', 'ktaub'],
    argstr=' -quadrant',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    )
    inputs = TCorr1D.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_TCorr1D_outputs():
    output_map = dict(out_file=dict(),
    )
    outputs = TCorr1D.output_spec()

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