| 279 | assert urlquote(uid, '/@:') in href |
| 280 | |
| 281 | def test_metadata(self, requires_metadata, s): |
| 282 | if not getattr(self, 'dav_server', ''): |
| 283 | assert not s.get_meta('color') |
| 284 | assert not s.get_meta('displayname') |
| 285 | |
| 286 | try: |
| 287 | s.set_meta('color', None) |
| 288 | assert not s.get_meta('color') |
| 289 | s.set_meta('color', '#ff0000') |
| 290 | assert s.get_meta('color') == '#ff0000' |
| 291 | except exceptions.UnsupportedMetadataError: |
| 292 | pass |
| 293 | |
| 294 | for x in ('hello world', 'hello wörld'): |
| 295 | s.set_meta('displayname', x) |
| 296 | rv = s.get_meta('displayname') |
| 297 | assert rv == x |
| 298 | assert isinstance(rv, str) |
| 299 | |
| 300 | @given(value=st.one_of( |
| 301 | st.none(), |