mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-19 13:05:52 +00:00
Style fixes
This commit is contained in:
parent
96aae16c32
commit
8f5f7eea76
1 changed files with 9 additions and 8 deletions
|
|
@ -54,19 +54,20 @@ def test_split_collection_multiple_wrappers():
|
|||
assert [x.splitlines() for x in given] == \
|
||||
[x.splitlines() for x in _simple_split]
|
||||
|
||||
|
||||
def test_split_collection_different_wrappers():
|
||||
with pytest.raises(ValueError) as exc_info:
|
||||
list(vobject.split_collection(u'BEGIN:VADDRESSBOOK\r\n'
|
||||
u'BEGIN:FOO\r\n'
|
||||
u'END:FOO\r\n'
|
||||
u'END:VADDRESSBOOK\r\n'
|
||||
u'BEGIN:VCALENDAR\r\n'
|
||||
u'BEGIN:FOO\r\n'
|
||||
u'END:FOO\r\n'
|
||||
u'END:VCALENDAR\r\n'))
|
||||
u'BEGIN:FOO\r\n'
|
||||
u'END:FOO\r\n'
|
||||
u'END:VADDRESSBOOK\r\n'
|
||||
u'BEGIN:VCALENDAR\r\n'
|
||||
u'BEGIN:FOO\r\n'
|
||||
u'END:FOO\r\n'
|
||||
u'END:VCALENDAR\r\n'))
|
||||
|
||||
assert 'different types of components at top-level' in \
|
||||
str(exc_info.value).lower()
|
||||
str(exc_info.value).lower()
|
||||
|
||||
|
||||
def test_join_collection_simple():
|
||||
|
|
|
|||
Loading…
Reference in a new issue