def test_SmoothEstimate_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    residual_fit_file=dict(requires=['dof'],
    argstr='--res=%s',
    ),
    args=dict(argstr='%s',
    ),
    dof=dict(mandatory=True,
    argstr='--dof=%d',
    xor=['zstat_file'],
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    zstat_file=dict(xor=['dof'],
    argstr='--zstat=%s',
    ),
    mask_file=dict(mandatory=True,
    argstr='--mask=%s',
    ),
    output_type=dict(),
    )
    inputs = SmoothEstimate.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_SmoothEstimate_inputs():
    input_map = dict(
        args=dict(argstr='%s', ),
        dof=dict(
            argstr='--dof=%d',
            mandatory=True,
            xor=['zstat_file'],
        ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        mask_file=dict(
            argstr='--mask=%s',
            mandatory=True,
        ),
        output_type=dict(),
        residual_fit_file=dict(
            argstr='--res=%s',
            requires=['dof'],
        ),
        terminal_output=dict(
            mandatory=True,
            nohash=True,
        ),
        zstat_file=dict(
            argstr='--zstat=%s',
            xor=['dof'],
        ),
    )
    inputs = SmoothEstimate.input_spec()

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