uses a dict instead of a string of a dict for preventInvitationsTest
parent
5847e086ec
commit
a86b164228
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue