def create_test_node_tag(**kw):
    tag = get_test_node_tag(**kw)
    dbapi = db_api.get_instance()
    return dbapi.add_node_tag(tag['node_id'], tag['tag'])
Create test node tag entry in DB and return NodeTag DB object.
dataset/ETHPy150Open openstack/ironic/ironic/tests/unit/db/utils.py/create_test_node_tag