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

Method test_get_multi_duplicates

tests/storage/__init__.py:95–101  ·  view source on GitHub ↗
(self, s, get_item)

Source from the content-addressed store, hash-verified

93 assert list(s.get_multi([])) == []
94
95 def test_get_multi_duplicates(self, s, get_item):
96 href, etag = s.upload(get_item())
97 if etag is None:
98 _, etag = s.get(href)
99 (href2, item, etag2), = s.get_multi([href] * 2)
100 assert href2 == href
101 assert etag2 == etag
102
103 def test_upload_already_existing(self, s, get_item):
104 item = get_item()

Callers

nothing calls this directly

Calls 3

uploadMethod · 0.45
getMethod · 0.45
get_multiMethod · 0.45

Tested by

no test coverage detected