File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 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 ()
You can’t perform that action at this time.
0 commit comments