Ejemplo n.º 1
0
    def test_dav_unicode_href(self, s, get_item, monkeypatch):
        if self.dav_server == "radicale":
            pytest.skip("Radicale is unable to deal with unicode hrefs")

        monkeypatch.setattr(s, "_get_href", lambda item: item.ident + s.fileext)
        item = get_item(uid="град сатану" + str(uuid.uuid4()))
        href, etag = s.upload(item)
        item2, etag2 = s.get(href)
        assert_item_equals(item, item2)
Ejemplo n.º 2
0
 def test_dav_unicode_href(self, s, get_item, monkeypatch):
     if self.dav_server != 'radicale':
         # Radicale is unable to deal with unicode hrefs
         monkeypatch.setattr(s, '_get_href',
                             lambda item: item.ident + s.fileext)
     item = get_item(uid=u'lolätvdirsynceröü град сатану')
     href, etag = s.upload(item)
     item2, etag2 = s.get(href)
     assert_item_equals(item, item2)
Ejemplo n.º 3
0
    def test_dav_unicode_href(self, s, get_item, monkeypatch):
        if self.dav_server == 'radicale':
            pytest.skip('Radicale is unable to deal with unicode hrefs')

        monkeypatch.setattr(s, '_get_href',
                            lambda item: item.ident + s.fileext)
        item = get_item(uid=u'град сатану' + str(uuid.uuid4()))
        href, etag = s.upload(item)
        item2, etag2 = s.get(href)
        assert_item_equals(item, item2)