diff test/db_test_base.py @ 4301:d47245c2530a

Fix some security assertions and tests. Fix some security assertions in mailgw to only assert Edit permissions if the user is editing an existing db node. If not then check Create. Fix some tests that were broken by the new assertions, the Create -> Register change and finally for the new "not registered" message.
author Richard Jones <richard@users.sourceforge.net>
date Mon, 07 Dec 2009 05:13:27 +0000
parents 88af08f8666f
children 0e33bf5571dc
line wrap: on
line diff
--- a/test/db_test_base.py	Mon Dec 07 05:08:34 2009 +0000
+++ b/test/db_test_base.py	Mon Dec 07 05:13:27 2009 +0000
@@ -113,6 +113,9 @@
         priority.create(name="bug", order="1")
     db.commit()
 
+    # nosy tests require this
+    db.security.addPermissionToRole('User', 'View', 'msg')
+
 class MyTestCase(unittest.TestCase):
     def tearDown(self):
         if hasattr(self, 'db'):

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