mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +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 textwrap
|
||||||
|
|
||||||
import icalendar
|
import icalendar
|
||||||
|
|
||||||
import pytest
|
import pytest
|
||||||
|
|
||||||
import vdirsyncer.utils.vobject as vobject
|
import vdirsyncer.utils.vobject as vobject
|
||||||
|
|
@ -209,9 +210,9 @@ def test_vcard_semicolons_in_values():
|
||||||
''').strip()
|
''').strip()
|
||||||
|
|
||||||
# Assert that icalendar breaks vcard properties with semicolons in values
|
# Assert that icalendar breaks vcard properties with semicolons in values
|
||||||
assert 'ADR:\\;\\;Address 08\\;City\\;\\;12345\\;Germany' in \
|
assert b'ADR:\\;\\;Address 08\\;City\\;\\;12345\\;Germany' in \
|
||||||
vobject.Item(vcard).parsed.to_ical()
|
vobject.Item(vcard).parsed.to_ical().splitlines()
|
||||||
|
|
||||||
# Assert that vdirsyncer fixes these properties
|
# Assert that vdirsyncer fixes these properties
|
||||||
assert 'ADR:;;Address 08;City;;12345;Germany' in \
|
assert u'ADR:;;Address 08;City;;12345;Germany' in \
|
||||||
list(vobject.to_unicode_lines(vobject.Item(vcard).parsed))
|
list(vobject.to_unicode_lines(vobject.Item(vcard).parsed))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue