From 4b94a183be2887ef958931bb4848dec51ad41cbb Mon Sep 17 00:00:00 2001 From: Luc Charland Date: Wed, 3 Sep 2014 13:50:13 -0400 Subject: [PATCH] urllib.quote needs a string --- Tests/Integration/test-prevent-invitations.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Tests/Integration/test-prevent-invitations.py b/Tests/Integration/test-prevent-invitations.py index d1c19ed10..a1ec81b1f 100755 --- a/Tests/Integration/test-prevent-invitations.py +++ b/Tests/Integration/test-prevent-invitations.py @@ -29,7 +29,7 @@ class preventInvitationsTest(unittest.TestCase): def tearDown(self): self.prefs.set("autoReplyText", "") - self.prefs.set('PreventInvitations', 0) + self.prefs.set('PreventInvitations', '0') self.prefs.set("whiteList", "") #- Manual Cleanup, not called because classs is not derived from unittest self.caldav.tearDown() @@ -37,7 +37,7 @@ class preventInvitationsTest(unittest.TestCase): def testDontPreventInvitation(self): """ Set/get the PreventInvitation pref""" #- First accept the invitation - self.prefs.set('PreventInvitations', 0) + self.prefs.set('PreventInvitations', '0') notset = self.prefs.get_settings('')['Calendar']['PreventInvitations'] self.assertEqual(notset, 0) self.caldav.AddAttendee() @@ -46,7 +46,7 @@ class preventInvitationsTest(unittest.TestCase): def testPreventInvitation(self): """ Set PreventInvitation and don't accept the Invitation""" #- Second, enable PreventInviation and refuse it - self.prefs.set('enablePreventInvitations', 0) + self.prefs.set('enablePreventInvitations', '0') isset = self.prefs.get_settings('')['Calendar']['PreventInvitations'] self.assertEqual(isset, 1) self.caldav.AddAttendee(409) @@ -55,13 +55,13 @@ class preventInvitationsTest(unittest.TestCase): def testPreventInvitationWhiteList(self): """ Set PreventInvitation add to WhiteList and accept the Invitation""" #- First, add the Organiser to the Attendee's whitelist - self.prefs.set('enablePreventInvitations', 0) + self.prefs.set('enablePreventInvitations', '0') self.prefs.set("whiteList", white_listed_attendee) whitelist = self.prefs.get_settings('Calendar')['PreventInvitationsWhitelist'] self.assertEqual(whitelist, white_listed_attendee) #- Second, try again to invite, it should work - self.prefs.set('enablePreventInvitations', 0) + self.prefs.set('enablePreventInvitations', '0') isset = self.prefs.get_settings('')['Calendar']['PreventInvitations'] self.assertEqual(isset, 1) self.caldav.AddAttendee()