# AUTO-GENERATED by tools/checkspecs.py - DO NOT EDIT
from nipype.testing import assert_equal
from nipype.interfaces.io import MySQLSink

def test_MySQLSink_inputs():
    input_map = dict(config=dict(mandatory=True,
    xor=['host'],
    ),
    database_name=dict(mandatory=True,
    ),
    host=dict(mandatory=True,
    requires=['username', 'password'],
    usedefault=True,
    xor=['config'],
    ),
    ignore_exception=dict(nohash=True,
    usedefault=True,
    ),
    password=dict(),
    table_name=dict(mandatory=True,
    ),
    username=dict(),
    )
    inputs = MySQLSink.input_spec()

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

