mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-01 10:05:50 +00:00
Formatting and string type fixes
This commit is contained in:
parent
e2fa26a711
commit
0f44645e78
1 changed files with 5 additions and 4 deletions
|
|
@ -9,6 +9,7 @@
|
|||
import textwrap
|
||||
|
||||
import icalendar
|
||||
|
||||
import pytest
|
||||
|
||||
import vdirsyncer.utils.vobject as vobject
|
||||
|
|
@ -209,9 +210,9 @@ def test_vcard_semicolons_in_values():
|
|||
''').strip()
|
||||
|
||||
# Assert that icalendar breaks vcard properties with semicolons in values
|
||||
assert 'ADR:\\;\\;Address 08\\;City\\;\\;12345\\;Germany' in \
|
||||
vobject.Item(vcard).parsed.to_ical()
|
||||
assert b'ADR:\\;\\;Address 08\\;City\\;\\;12345\\;Germany' in \
|
||||
vobject.Item(vcard).parsed.to_ical().splitlines()
|
||||
|
||||
# Assert that vdirsyncer fixes these properties
|
||||
assert 'ADR:;;Address 08;City;;12345;Germany' in \
|
||||
list(vobject.to_unicode_lines(vobject.Item(vcard).parsed))
|
||||
assert u'ADR:;;Address 08;City;;12345;Germany' in \
|
||||
list(vobject.to_unicode_lines(vobject.Item(vcard).parsed))
|
||||
|
|
|
|||
Loading…
Reference in a new issue