MCPcopy
hub / github.com/pimutils/vdirsyncer / test_hash_item

Function test_hash_item

tests/unit/utils/test_vobject.py:147–151  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145
146
147def test_hash_item():
148 a = EVENT_TEMPLATE.format(r=1, uid=1)
149 b = '\n'.join(line for line in a.splitlines()
150 if 'PRODID' not in line)
151 assert vobject.hash_item(a) == vobject.hash_item(b)
152
153
154def test_multiline_uid(benchmark):

Callers

nothing calls this directly

Calls 1

joinMethod · 0.80

Tested by

no test coverage detected