<reponame>richung99/digitizePlots<gh_stars>100-1000
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..lesions import FillLesions


def test_FillLesions_inputs():
    input_map = dict(
        args=dict(
            argstr="%s",
        ),
        bin_mask=dict(
            argstr="-mask %s",
            extensions=None,
        ),
        cwf=dict(
            argstr="-cwf %f",
        ),
        debug=dict(
            argstr="-debug",
        ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        in_dilation=dict(
            argstr="-dil %d",
        ),
        in_file=dict(
            argstr="-i %s",
            extensions=None,
            mandatory=True,
            position=1,
        ),
        lesion_mask=dict(
            argstr="-l %s",
            extensions=None,
            mandatory=True,
            position=2,
        ),
        match=dict(
            argstr="-match %f",
        ),
        other=dict(
            argstr="-other",
        ),
        out_datatype=dict(
            argstr="-odt %s",
        ),
        out_file=dict(
            argstr="-o %s",
            extensions=None,
            name_source=["in_file"],
            name_template="%s_lesions_filled.nii.gz",
            position=3,
        ),
        search=dict(
            argstr="-search %f",
        ),
        size=dict(
            argstr="-size %d",
        ),
        smooth=dict(
            argstr="-smo %f",
        ),
        use_2d=dict(
            argstr="-2D",
        ),
        verbose=dict(
            argstr="-v",
        ),
    )
    inputs = FillLesions.input_spec()

    for key, metadata in list(input_map.items()):
        for metakey, value in list(metadata.items()):
            assert getattr(inputs.traits()[key], metakey) == value


def test_FillLesions_outputs():
    output_map = dict(
        out_file=dict(
            extensions=None,
        ),
    )
    outputs = FillLesions.output_spec()

    for key, metadata in list(output_map.items()):
        for metakey, value in list(metadata.items()):
            assert getattr(outputs.traits()[key], metakey) == value

# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from ..lesions import FillLesions


def test_FillLesions_inputs():
    input_map = dict(
        args=dict(
            argstr="%s",
        ),
        bin_mask=dict(
            argstr="-mask %s",
            extensions=None,
        ),
        cwf=dict(
            argstr="-cwf %f",
        ),
        debug=dict(
            argstr="-debug",
        ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        in_dilation=dict(
            argstr="-dil %d",
        ),
        in_file=dict(
            argstr="-i %s",
            extensions=None,
            mandatory=True,
            position=1,
        ),
        lesion_mask=dict(
            argstr="-l %s",
            extensions=None,
            mandatory=True,
            position=2,
        ),
        match=dict(
            argstr="-match %f",
        ),
        other=dict(
            argstr="-other",
        ),
        out_datatype=dict(
            argstr="-odt %s",
        ),
        out_file=dict(
            argstr="-o %s",
            extensions=None,
            name_source=["in_file"],
            name_template="%s_lesions_filled.nii.gz",
            position=3,
        ),
        search=dict(
            argstr="-search %f",
        ),
        size=dict(
            argstr="-size %d",
        ),
        smooth=dict(
            argstr="-smo %f",
        ),
        use_2d=dict(
            argstr="-2D",
        ),
        verbose=dict(
            argstr="-v",
        ),
    )
    inputs = FillLesions.input_spec()

    for key, metadata in list(input_map.items()):
        for metakey, value in list(metadata.items()):
            assert getattr(inputs.traits()[key], metakey) == value


def test_FillLesions_outputs():
    output_map = dict(
        out_file=dict(
            extensions=None,
        ),
    )
    outputs = FillLesions.output_spec()

    for key, metadata in list(output_map.items()):
        for metakey, value in list(metadata.items()):
            assert getattr(outputs.traits()[key], metakey) == value
# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT