Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
142
Merge Requests
142
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
c698eba2
Commit
c698eba2
authored
Mar 15, 2012
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add forgotten test case.
parent
fa32d71f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
product/ERP5/tests/testAuthenticationPolicy.py
product/ERP5/tests/testAuthenticationPolicy.py
+3
-0
No files found.
product/ERP5/tests/testAuthenticationPolicy.py
View file @
c698eba2
...
@@ -319,10 +319,13 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
...
@@ -319,10 +319,13 @@ class TestAuthenticationPolicy(ERP5TypeTestCase):
for
password
in
[
'a'
,
'b'
,
'c'
,
'd'
,
'e'
,
'f'
]:
for
password
in
[
'a'
,
'b'
,
'c'
,
'd'
,
'e'
,
'f'
]:
person
.
setPassword
(
password
)
person
.
setPassword
(
password
)
self
.
stepTic
()
self
.
stepTic
()
self
.
_clearCache
()
self
.
stepTic
()
self
.
assertTrue
(
person
.
isPasswordValid
(
'12345678-new'
))
self
.
assertTrue
(
person
.
isPasswordValid
(
'12345678-new'
))
self
.
assertTrue
(
person
.
isPasswordValid
(
'a'
))
self
.
assertTrue
(
person
.
isPasswordValid
(
'a'
))
self
.
assertTrue
(
person
.
isPasswordValid
(
'b'
))
self
.
assertTrue
(
person
.
isPasswordValid
(
'b'
))
self
.
assertTrue
(
person
.
isPasswordValid
(
'c'
))
# only last 3 (including current one are invalid)
# only last 3 (including current one are invalid)
self
.
assertSameSet
([
-
4
],
person
.
analyzePassword
(
'd'
))
self
.
assertSameSet
([
-
4
],
person
.
analyzePassword
(
'd'
))
self
.
assertSameSet
([
-
4
],
person
.
analyzePassword
(
'e'
))
self
.
assertSameSet
([
-
4
],
person
.
analyzePassword
(
'e'
))
...
...
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