Commit 5e883aef authored by Tres Seaver's avatar Tres Seaver

Add a unittest for today's fix.

parent 92176d46
...@@ -227,7 +227,15 @@ class NullUnrestrictedUserTests(unittest.TestCase): ...@@ -227,7 +227,15 @@ class NullUnrestrictedUserTests(unittest.TestCase):
# TODO class Test_readUserAccessFile(unittest.TestCase) # TODO class Test_readUserAccessFile(unittest.TestCase)
# TODO class BasicUserFoldertests(unittest.TestCase) class BasicUserFolderTests(unittest.TestCase):
def _getTargetClass(self):
from AccessControl.User import BasicUserFolder
return BasicUserFolder
def test_manage_users_security_initialized(self):
uf = self._getTargetClass()()
self.assertTrue(hasattr(uf, 'manage_users__roles__'))
class UserFolderTests(unittest.TestCase): class UserFolderTests(unittest.TestCase):
...@@ -494,11 +502,12 @@ class UserFolderTests(unittest.TestCase): ...@@ -494,11 +502,12 @@ class UserFolderTests(unittest.TestCase):
def test_suite(): def test_suite():
suite = unittest.TestSuite() return unittest.TestSuite((
suite.addTest(unittest.makeSuite(BasicUserTests)) unittest.makeSuite(BasicUserTests),
suite.addTest(unittest.makeSuite(SimpleUserTests)) unittest.makeSuite(SimpleUserTests),
suite.addTest(unittest.makeSuite(SpecialUserTests)) unittest.makeSuite(SpecialUserTests),
suite.addTest(unittest.makeSuite(UnrestrictedUserTests)) unittest.makeSuite(UnrestrictedUserTests),
suite.addTest(unittest.makeSuite(NullUnrestrictedUserTests)) unittest.makeSuite(NullUnrestrictedUserTests),
suite.addTest(unittest.makeSuite(UserFolderTests)) unittest.makeSuite(BasicUserFolderTests),
return suite unittest.makeSuite(UserFolderTests),
))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment