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

def test_PlotTimeSeries_inputs():
    input_map = dict(args=dict(argstr='%s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    in_file=dict(argstr='%s',
    mandatory=True,
    position=1,
    ),
    labels=dict(argstr='%s',
    ),
    legend_file=dict(argstr='--legend=%s',
    ),
    out_file=dict(argstr='-o %s',
    genfile=True,
    hash_files=False,
    ),
    output_type=dict(),
    plot_finish=dict(argstr='--finish=%d',
    xor=('plot_range',),
    ),
    plot_range=dict(argstr='%s',
    xor=('plot_start', 'plot_finish'),
    ),
    plot_size=dict(argstr='%s',
    ),
    plot_start=dict(argstr='--start=%d',
    xor=('plot_range',),
    ),
    sci_notation=dict(argstr='--sci',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    title=dict(argstr='%s',
    ),
    x_precision=dict(argstr='--precision=%d',
    ),
    x_units=dict(argstr='-u %d',
    usedefault=True,
    ),
    y_max=dict(argstr='--ymax=%.2f',
    xor=('y_range',),
    ),
    y_min=dict(argstr='--ymin=%.2f',
    xor=('y_range',),
    ),
    y_range=dict(argstr='%s',
    xor=('y_min', 'y_max'),
    ),
    )
    inputs = PlotTimeSeries.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_PlotTimeSeries_outputs():
    output_map = dict(out_file=dict(),
    )
    outputs = PlotTimeSeries.output_spec()

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

