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

Method test_dav_unicode_href

tests/storage/dav/__init__.py:45–54  ·  view source on GitHub ↗
(self, s, get_item, monkeypatch)

Source from the content-addressed store, hash-verified

43 monkeypatch.undo()
44
45 def test_dav_unicode_href(self, s, get_item, monkeypatch):
46 if self.dav_server == 'radicale':
47 pytest.skip('Radicale is unable to deal with unicode hrefs')
48
49 monkeypatch.setattr(s, '_get_href',
50 lambda item: item.ident + s.fileext)
51 item = get_item(uid='град сатану' + str(uuid.uuid4()))
52 href, etag = s.upload(item)
53 item2, etag2 = s.get(href)
54 assert_item_equals(item, item2)

Callers

nothing calls this directly

Calls 3

assert_item_equalsFunction · 0.90
uploadMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected