X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=test%2Ftest_security.py;h=97e759f7a58e3da873a4395062c9c6fb0ae97fc5;hb=186c0cdaa3e7a62c0afca640a5fbe57f935343a5;hp=f55656f76cafb3c6e63e65f9859ca3954811f6ca;hpb=8a126f4a10af08b96f3c7472b88ec5d72b3df050;p=roundup.git diff --git a/test/test_security.py b/test/test_security.py index f55656f..97e759f 100644 --- a/test/test_security.py +++ b/test/test_security.py @@ -18,7 +18,7 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -# $Id: test_security.py,v 1.3 2002-07-29 21:53:29 richard Exp $ +# $Id: test_security.py,v 1.5 2002-09-20 05:08:00 richard Exp $ import os, unittest, shutil @@ -32,7 +32,7 @@ class PermissionTest(MyTestCase): if os.path.exists(config.DATABASE): shutil.rmtree(config.DATABASE) os.makedirs(config.DATABASE + '/files') - self.db = anydbm.Database(config, 'test') + self.db = anydbm.Database(config, 'admin') setupSchema(self.db, 1, anydbm) def testInterfaceSecurity(self): @@ -66,7 +66,6 @@ class PermissionTest(MyTestCase): self.db.security.getPermission('View', 'issue') def testDBinit(self): - self.db.user.create(username="admin", roles='Admin') self.db.user.create(username="anonymous", roles='User') def testAccessControls(self): @@ -104,24 +103,4 @@ def suite(): return unittest.makeSuite(PermissionTest) -# -# $Log: not supported by cvs2svn $ -# Revision 1.2 2002/07/26 08:27:00 richard -# Very close now. The cgi and mailgw now use the new security API. The two -# templates have been migrated to that setup. Lots of unit tests. Still some -# issue in the web form for editing Roles assigned to users. -# -# Revision 1.1 2002/07/25 07:14:06 richard -# Bugger it. Here's the current shape of the new security implementation. -# Still to do: -# . call the security funcs from cgi and mailgw -# . change shipped templates to include correct initialisation and remove -# the old config vars -# ... that seems like a lot. The bulk of the work has been done though. Honest :) -# -# Revision 1.1 2002/07/10 06:40:01 richard -# ehem, forgot to add -# -# -# # vim: set filetype=python ts=4 sw=4 et si