diff --git a/Tests/Integration/test-preferences.py b/Tests/Integration/test-preferences.py index e49e82dd2..a13eb16be 100644 --- a/Tests/Integration/test-preferences.py +++ b/Tests/Integration/test-preferences.py @@ -46,7 +46,7 @@ class preferencesTest(unittest.TestCase): def testPreventInvitationsWhiteList(self): """Add to the PreventInvitations Whitelist""" - self.prefs.set("whiteList", white_listed_attendee) + self.prefs.set("whiteList", simplejson.dumps(white_listed_attendee)) whitelist = self.prefs.get_settings('Calendar')['PreventInvitationsWhitelist'] self.assertEqual(whitelist, white_listed_attendee) diff --git a/Tests/Integration/test-prevent-invitations.py b/Tests/Integration/test-prevent-invitations.py index a1ec81b1f..4493597db 100755 --- a/Tests/Integration/test-prevent-invitations.py +++ b/Tests/Integration/test-prevent-invitations.py @@ -56,7 +56,7 @@ class preventInvitationsTest(unittest.TestCase): """ 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("whiteList", white_listed_attendee) + self.prefs.set("whiteList", simplejson.dumps(white_listed_attendee)) whitelist = self.prefs.get_settings('Calendar')['PreventInvitationsWhitelist'] self.assertEqual(whitelist, white_listed_attendee)