uses a dict instead of a string of a dict for preventInvitationsTest

pull/66/merge
Luc Charland 2015-04-17 10:38:40 -04:00
parent 5847e086ec
commit a86b164228
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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)