def test_ModelMaker_outputs():
    output_map = dict(modelSceneFile=dict(exists=True, ), )
    outputs = ModelMaker.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
def test_ModelMaker_outputs():
    output_map = dict(modelSceneFile=dict(),
    )
    outputs = ModelMaker.output_spec()

    for key, metadata in output_map.items():
        for metakey, value in metadata.items():
            yield assert_equal, getattr(outputs.traits()[key], metakey), value
def test_ModelMaker_inputs():
    input_map = dict(color=dict(argstr='--color %s',
    ),
    labels=dict(argstr='--labels %s',
    sep=',',
    ),
    jointsmooth=dict(argstr='--jointsmooth ',
    ),
    modelSceneFile=dict(hash_files=False,
    argstr='--modelSceneFile %s...',
    ),
    InputVolume=dict(position=-1,
    argstr='%s',
    ),
    saveIntermediateModels=dict(argstr='--saveIntermediateModels ',
    ),
    skipUnNamed=dict(argstr='--skipUnNamed ',
    ),
    generateAll=dict(argstr='--generateAll ',
    ),
    filtertype=dict(argstr='--filtertype %s',
    ),
    start=dict(argstr='--start %d',
    ),
    pad=dict(argstr='--pad ',
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    args=dict(argstr='%s',
    ),
    splitnormals=dict(argstr='--splitnormals ',
    ),
    terminal_output=dict(mandatory=True,
    nohash=True,
    ),
    end=dict(argstr='--end %d',
    ),
    name=dict(argstr='--name %s',
    ),
    pointnormals=dict(argstr='--pointnormals ',
    ),
    smooth=dict(argstr='--smooth %d',
    ),
    decimate=dict(argstr='--decimate %f',
    ),
    environ=dict(nohash=True,
    usedefault=True,
    ),
    debug=dict(argstr='--debug ',
    ),
    )
    inputs = ModelMaker.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_ModelMaker_inputs():
    input_map = dict(
        InputVolume=dict(
            argstr='%s',
            position=-1,
        ),
        args=dict(argstr='%s', ),
        color=dict(argstr='--color %s', ),
        debug=dict(argstr='--debug ', ),
        decimate=dict(argstr='--decimate %f', ),
        end=dict(argstr='--end %d', ),
        environ=dict(
            nohash=True,
            usedefault=True,
        ),
        filtertype=dict(argstr='--filtertype %s', ),
        generateAll=dict(argstr='--generateAll ', ),
        ignore_exception=dict(
            nohash=True,
            usedefault=True,
        ),
        jointsmooth=dict(argstr='--jointsmooth ', ),
        labels=dict(
            argstr='--labels %s',
            sep=',',
        ),
        modelSceneFile=dict(
            argstr='--modelSceneFile %s...',
            hash_files=False,
        ),
        name=dict(argstr='--name %s', ),
        pad=dict(argstr='--pad ', ),
        pointnormals=dict(argstr='--pointnormals ', ),
        saveIntermediateModels=dict(argstr='--saveIntermediateModels ', ),
        skipUnNamed=dict(argstr='--skipUnNamed ', ),
        smooth=dict(argstr='--smooth %d', ),
        splitnormals=dict(argstr='--splitnormals ', ),
        start=dict(argstr='--start %d', ),
        terminal_output=dict(
            mandatory=True,
            nohash=True,
        ),
    )
    inputs = ModelMaker.input_spec()

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