mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Indent multiline string.
This commit is contained in:
parent
c750561fb8
commit
a79d1ddb52
1 changed files with 41 additions and 39 deletions
|
|
@ -9,6 +9,8 @@
|
|||
|
||||
import pytest
|
||||
|
||||
import textwrap
|
||||
|
||||
import vdirsyncer.utils.vobject as vobject
|
||||
|
||||
from .. import BARE_EVENT_TEMPLATE, EVENT_TEMPLATE, VCARD_TEMPLATE, \
|
||||
|
|
@ -130,7 +132,7 @@ def test_multiline_uid():
|
|||
|
||||
|
||||
def test_multiline_uid_complex():
|
||||
a = u'''
|
||||
a = textwrap.dedent(u'''
|
||||
BEGIN:VCALENDAR
|
||||
BEGIN:VTIMEZONE
|
||||
TZID:Europe/Rome
|
||||
|
|
@ -154,7 +156,7 @@ BEGIN:VEVENT
|
|||
DTSTART:20140124T133000Z
|
||||
DTEND:20140124T143000Z
|
||||
DTSTAMP:20140612T090652Z
|
||||
UID:040000008200E00074C5B7101A82E0080000000050AAABEEF50DCF0100000000000000
|
||||
UID:040000008200E00074C5B7101A82E0080000000050AAABEEF50DCF
|
||||
001000000062548482FA830A46B9EA62114AC9F0EF
|
||||
CREATED:20140110T102231Z
|
||||
DESCRIPTION:Test.
|
||||
|
|
@ -166,7 +168,7 @@ SUMMARY:Präsentation
|
|||
TRANSP:OPAQUE
|
||||
END:VEVENT
|
||||
END:VCALENDAR
|
||||
'''.strip()
|
||||
''').strip()
|
||||
assert vobject.Item(a).uid == (u'040000008200E00074C5B7101A82E008000000005'
|
||||
u'0AAABEEF50DCF0100000000000000001000000062'
|
||||
u'548482FA830A46B9EA62114AC9F0EF')
|
||||
u'0AAABEEF50DCF001000000062548482FA830A46B9'
|
||||
u'EA62114AC9F0EF')
|
||||
|
|
|
|||
Loading…
Reference in a new issue