diff test/test_mailgw.py @ 2710:d694b408a8bc

testNewUserAuthor: "Email Registration" permission... ...changed to "Create" permission on class "user"; remove meaningless hasPermission call
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Wed, 29 Sep 2004 09:34:26 +0000
parents 6b5c77c03231
children f0b887a5e47b
line wrap: on
line diff
--- a/test/test_mailgw.py	Wed Sep 29 09:17:57 2004 +0000
+++ b/test/test_mailgw.py	Wed Sep 29 09:34:26 2004 +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.71 2004-09-29 09:17:57 a1s Exp $
+# $Id: test_mailgw.py,v 1.72 2004-09-29 09:34:26 a1s Exp $
 
 # TODO: test bcc
 
@@ -676,7 +676,6 @@
         anonid = self.db.user.lookup('anonymous')
         self.db.user.set(anonid, roles='Anonymous')
 
-        self.db.security.hasPermission('Email Registration', anonid)
         l = self.db.user.list()
         l.sort()
         message = '''Content-Type: text/plain;
@@ -694,7 +693,7 @@
         self.assertEqual(l, m)
 
         # now with the permission
-        p = self.db.security.getPermission('Email Registration')
+        p = self.db.security.getPermission('Create', 'user')
         self.db.security.role['anonymous'].permissions=[p]
         self._handle_mail(message)
         m = self.db.user.list()

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