diff test/test_mailgw.py @ 3420:b854a6a08fff maint-0.8

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Fri, 07 Oct 2005 05:49:15 +0000
parents 246fed02a51e
children
line wrap: on
line diff
--- a/test/test_mailgw.py	Wed Sep 28 05:49:23 2005 +0000
+++ b/test/test_mailgw.py	Fri Oct 07 05:49:15 2005 +0000
@@ -8,7 +8,7 @@
 # but WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 #
-# $Id: test_mailgw.py,v 1.73.2.2 2005-06-24 06:48:17 richard Exp $
+# $Id: test_mailgw.py,v 1.73.2.3 2005-10-07 05:49:15 richard Exp $
 
 # TODO: test bcc
 
@@ -685,8 +685,11 @@
         self.assertEqual(l, m)
 
         # now with the permission
-        p = self.db.security.getPermission('Create', 'user')
-        self.db.security.role['anonymous'].permissions=[p]
+        p = [
+            self.db.security.getPermission('Create', 'user'),
+            self.db.security.getPermission('Email Access', None),
+        ]
+        self.db.security.role['anonymous'].permissions=p
         self._handle_mail(message)
         m = self.db.user.list()
         m.sort()

Roundup Issue Tracker: http://roundup-tracker.org/