def test_hash_item(): a = EVENT_TEMPLATE.format(r=1, uid=1) b = u'\n'.join(line for line in a.splitlines() if u'PRODID' not in line) assert vobject.hash_item(a) == vobject.hash_item(b)
def test_hash_item(): a = EVENT_TEMPLATE.format(r=1, uid=1) b = "\n".join(line for line in a.splitlines() if "PRODID" not in line) assert vobject.hash_item(a) == vobject.hash_item(b)
def test_hash_item2(): a = EVENT_TEMPLATE.format(r=1, uid=1) b = u'\n'.join(line for line in a.splitlines() if u'PRODID' not in line) assert vobject.Item(a).hash == vobject.Item(b).hash