Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
7a8047f4
Commit
7a8047f4
authored
Dec 22, 2016
by
Georgios Dagkakis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testBusinessTemplate: add description with ampersand in test portal type role
to check there is no problem during import/export
parent
0194077a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
product/ERP5/tests/testBusinessTemplate.py
product/ERP5/tests/testBusinessTemplate.py
+2
-2
No files found.
product/ERP5/tests/testBusinessTemplate.py
View file @
7a8047f4
...
...
@@ -3071,7 +3071,7 @@ class BusinessTemplateMixin(ERP5TypeTestCase, LogInterceptor):
object_pt
=
pt
.
_getOb
(
object_id
)
object_pt
.
newContent
(
portal_type
=
'Role Information'
,
title
=
'Geek Role Definition'
,
description
=
'A definition with non ascii chars éàè'
,
description
=
'A definition with non ascii chars éàè
& ampersand
'
,
role_name_list
=
(
'geek_role_definition'
,),
role_category_list
=
(
'group/g1'
,
'function/f1'
),
role_base_category_script_id
=
'Base Category Script'
,
...
...
@@ -3100,7 +3100,7 @@ class BusinessTemplateMixin(ERP5TypeTestCase, LogInterceptor):
role
,
=
pt
[
object_id
].
getRoleInformationList
()
self
.
assertEqual
(
'Geek Role Definition'
,
role
.
getTitle
())
self
.
assertEqual
([
'geek_role_definition'
],
role
.
getRoleNameList
())
self
.
assertEqual
(
'A definition with non ascii chars éàè'
,
role
.
getDescription
())
self
.
assertEqual
(
'A definition with non ascii chars éàè
& ampersand
'
,
role
.
getDescription
())
self
.
assertEqual
([
'group/g1'
,
'function/f1'
],
role
.
getRoleCategoryList
())
self
.
assertEqual
([
'group'
,
'site'
],
role
.
getRoleBaseCategoryList
())
self
.
assertEqual
(
'Base Category Script'
,
role
.
getRoleBaseCategoryScriptId
())
...
...
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