# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.utils import FilterRegressor
def test_FilterRegressor_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    out_file=dict(hash_files=False,
    genfile=True,
    position=2,
    argstr='-o %s',
    ),
    filter_all=dict(mandatory=True,
    position=4,
    xor=['filter_columns'],
    argstr="-f '%s'",
    ),
    out_vnscales=dict(argstr='--out_vnscales',
    ),
    args=dict(argstr='%s',
    ),
    mask=dict(argstr='-m %s',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(position=1,
    mandatory=True,
    argstr='-i %s',
    ),
    output_type=dict(),
    filter_columns=dict(xor=['filter_all'],
    position=4,
    mandatory=True,
    argstr="-f '%s'",
    ),
    var_norm=dict(argstr='--vn',
    ),
    design_file=dict(position=3,
    mandatory=True,
    argstr='-d %s',
    ),
    )
    inputs = FilterRegressor.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_FilterRegressor_outputs():
    output_map = dict(out_file=dict(),
    )
    outputs = FilterRegressor.output_spec()

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