Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
5e883aef
Commit
5e883aef
authored
Oct 24, 2011
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a unittest for today's fix.
parent
92176d46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
src/AccessControl/tests/testUser.py
src/AccessControl/tests/testUser.py
+18
-9
No files found.
src/AccessControl/tests/testUser.py
View file @
5e883aef
...
@@ -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
),
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment