From 0f44645e789035be2ba021d6a311a812cec0613f Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Mon, 14 Jul 2014 15:32:59 +0200 Subject: [PATCH] Formatting and string type fixes --- tests/utils/test_vobject.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/utils/test_vobject.py b/tests/utils/test_vobject.py index 61e9522..cc16478 100644 --- a/tests/utils/test_vobject.py +++ b/tests/utils/test_vobject.py @@ -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))