when creating tags in hiero with pytthon if an tag was created with the same name in hieros api the pointer goes to the same item
there should be a seperate guid per tag
tags = hiero.core.findProjectTags(project, "tag_name")
print set([tag.guid() for tag in tags])
assert(len(set([tag.guid() for tag in tags])) == len(tags))
tag = hiero.core.Tag("some_dummy_tag")
tag_copy = tag.copy()
tag_copy.setName("tag_name")
project.tagsBin().addItem(tag_copy)
if you run this twice the tag guid is the same which is really bad
tag = hiero.core.Tag("tag_name")
project.tagsBin().addItem(tag)
interestingly if you run this the guid is the same after you set the name and then "create a new tag" with the old name
tag = hiero.core.Tag("tag_name")
tag.setName("new_name")
project.tagsBin().addItem(tag)
new_tag = hiero.core.Tag("tag_name")
print new_tag.guid() == tag.gui()
# returns True