# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from .....testing import assert_equal
from ..featuredetection import HammerAttributeCreator


def test_HammerAttributeCreator_inputs():
    input_map = dict(Scale=dict(argstr='--Scale %d',
    ),
    Strength=dict(argstr='--Strength %f',
    ),
    args=dict(argstr='%s',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    inputCSFVolume=dict(argstr='--inputCSFVolume %s',
    ),
    inputGMVolume=dict(argstr='--inputGMVolume %s',
    ),
    inputWMVolume=dict(argstr='--inputWMVolume %s',
    ),
    outputVolumeBase=dict(argstr='--outputVolumeBase %s',
    ),
    terminal_output=dict(nohash=True,
    ),
    )
    inputs = HammerAttributeCreator.input_spec()

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


def test_HammerAttributeCreator_outputs():
    output_map = dict()
    outputs = HammerAttributeCreator.output_spec()

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