# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.fsl.dti import BEDPOSTX
def test_BEDPOSTX_inputs():
    input_map = dict(ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    bvecs=dict(mandatory=True,
    ),
    bpx_directory=dict(argstr='%s',
    usedefault=True,
    ),
    bvals=dict(mandatory=True,
    ),
    weight=dict(argstr='-w %.2f',
    ),
    jumps=dict(argstr='-j %d',
    ),
    args=dict(argstr='%s',
    ),
    mask=dict(mandatory=True,
    ),
    burn_period=dict(argstr='-b %d',
    ),
    sampling=dict(argstr='-s %d',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    output_type=dict(),
    fibres=dict(argstr='-n %d',
    ),
    dwi=dict(mandatory=True,
    ),
    )
    inputs = BEDPOSTX.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_BEDPOSTX_outputs():
    output_map = dict(merged_phsamples=dict(),
    bpx_out_directory=dict(),
    xfms_directory=dict(),
    dyads=dict(),
    merged_fsamples=dict(),
    mean_fsamples=dict(),
    mean_phsamples=dict(),
    merged_thsamples=dict(),
    mean_thsamples=dict(),
    )
    outputs = BEDPOSTX.output_spec()

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