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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alecs_myu
erp5
Commits
10fefa8f
Commit
10fefa8f
authored
Mar 03, 2016
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Compare quoted portal_status_message because it is now quoted thanks to Base_redirect.
parent
f044e684
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
product/ERP5/tests/testERP5Core.py
product/ERP5/tests/testERP5Core.py
+3
-2
No files found.
product/ERP5/tests/testERP5Core.py
View file @
10fefa8f
...
...
@@ -32,6 +32,7 @@ import pprint
import
httplib
import
urlparse
import
base64
import
urllib
from
AccessControl.SecurityManagement
import
newSecurityManager
from
Testing
import
ZopeTestCase
...
...
@@ -512,7 +513,7 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
self
.
assertEqual
(
0
,
person
.
getRelationCountForDeletion
())
def
delete
(
assert_deleted
,
obj
):
redirect
=
self
.
_Folder_delete
(
obj
)
self
.
assertTrue
((
'Sorry, 1 item is in use.'
,
'Deleted.'
)[
assert_deleted
]
self
.
assertTrue
((
urllib
.
quote
(
'Sorry, 1 item is in use.'
)
,
'Deleted.'
)[
assert_deleted
]
in
redirect
,
redirect
)
self
.
tic
()
delete
(
0
,
organisation
)
...
...
@@ -541,7 +542,7 @@ class TestERP5Core(ERP5TypeTestCase, ZopeTestCase.Functional):
document_1
.
manage_permission
(
'View'
,
[],
acquire
=
0
)
document_1
.
manage_permission
(
'Access contents information'
,
[],
acquire
=
0
)
redirect
=
self
.
_Folder_delete
(
document_2
)
self
.
assert_
(
'Sorry, 1 item is in use.'
in
redirect
,
redirect
)
self
.
assert_
(
urllib
.
quote
(
'Sorry, 1 item is in use.'
)
in
redirect
,
redirect
)
self
.
assertEqual
(
module
.
objectCount
(),
2
)
def
test_getPropertyForUid
(
self
):
...
...
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