Skip to content

Commit 77239c2

Browse files
author
Alexander Smishlajev
committed
testNewUserAuthor: "Email Registration" permission...
...changed to "Create" permission on class "user"; remove meaningless hasPermission call
1 parent 68549a0 commit 77239c2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

test/test_mailgw.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# but WITHOUT ANY WARRANTY; without even the implied warranty of
99
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1010
#
11-
# $Id: test_mailgw.py,v 1.71 2004-09-29 09:17:57 a1s Exp $
11+
# $Id: test_mailgw.py,v 1.72 2004-09-29 09:34:26 a1s Exp $
1212

1313
# TODO: test bcc
1414

@@ -676,7 +676,6 @@ def testNewUserAuthor(self):
676676
anonid = self.db.user.lookup('anonymous')
677677
self.db.user.set(anonid, roles='Anonymous')
678678

679-
self.db.security.hasPermission('Email Registration', anonid)
680679
l = self.db.user.list()
681680
l.sort()
682681
message = '''Content-Type: text/plain;
@@ -694,7 +693,7 @@ def testNewUserAuthor(self):
694693
self.assertEqual(l, m)
695694

696695
# now with the permission
697-
p = self.db.security.getPermission('Email Registration')
696+
p = self.db.security.getPermission('Create', 'user')
698697
self.db.security.role['anonymous'].permissions=[p]
699698
self._handle_mail(message)
700699
m = self.db.user.list()

0 commit comments

Comments
 (0)