# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.matlab import MatlabCommand
def test_MatlabCommand_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    paths=dict(),
    prescript=dict(usedefault=True,
    ),
    script=dict(position=-1,
    mandatory=True,
    argstr='-r "%s;exit"',
    ),
    args=dict(argstr='%s',
    ),
    single_comp_thread=dict(argstr='-singleCompThread',
    nohash=True,
    ),
    script_file=dict(usedefault=True,
    ),
    nosplash=dict(argstr='-nosplash',
    nohash=True,
    usedefault=True,
    ),
    postscript=dict(usedefault=True,
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    mfile=dict(usedefault=True,
    ),
    logfile=dict(argstr='-logfile %s',
    ),
    uses_mcr=dict(xor=['nodesktop', 'nosplash', 'single_comp_thread'],
    nohash=True,
    ),
    nodesktop=dict(argstr='-nodesktop',
    nohash=True,
    usedefault=True,
    ),
    )
    inputs = MatlabCommand.input_spec()

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