Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_rtl_support
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
Romain Courteaud
erp5_rtl_support
Commits
4c743377
Commit
4c743377
authored
Aug 17, 2016
by
Tristan Cavelier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_discussion: add test for specific thread title like "manage_main"
parent
17bd328d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
product/ERP5/tests/testERP5Discussion.py
product/ERP5/tests/testERP5Discussion.py
+5
-0
No files found.
product/ERP5/tests/testERP5Discussion.py
View file @
4c743377
...
@@ -210,6 +210,7 @@ class TestERP5Discussion(ERP5TypeTestCase):
...
@@ -210,6 +210,7 @@ class TestERP5Discussion(ERP5TypeTestCase):
# test new thread reference do no overlap any other traversable object
# test new thread reference do no overlap any other traversable object
web_section1
.
WebSection_createNewDiscussionThread
(
web_section1
.
getId
(),
'test reference using web section'
)
web_section1
.
WebSection_createNewDiscussionThread
(
web_section1
.
getId
(),
'test reference using web section'
)
web_section1
.
WebSection_createNewDiscussionThread
(
'image_module'
,
'test1 body'
)
web_section1
.
WebSection_createNewDiscussionThread
(
'image_module'
,
'test1 body'
)
web_section1
.
WebSection_createNewDiscussionThread
(
'manage_main'
,
'test1 body'
)
self
.
tic
()
self
.
tic
()
self
.
assertNotEqual
(
web_section1
.
getId
(),
self
.
assertNotEqual
(
web_section1
.
getId
(),
portal
.
portal_catalog
.
getResultValue
(
portal
.
portal_catalog
.
getResultValue
(
...
@@ -219,6 +220,10 @@ class TestERP5Discussion(ERP5TypeTestCase):
...
@@ -219,6 +220,10 @@ class TestERP5Discussion(ERP5TypeTestCase):
portal
.
portal_catalog
.
getResultValue
(
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Discussion Thread'
,
portal_type
=
'Discussion Thread'
,
title
=
'image_module'
).
getReference
())
title
=
'image_module'
).
getReference
())
self
.
assertNotEqual
(
'manage_main'
,
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Discussion Thread'
,
title
=
'manage_main'
).
getReference
())
def
test_02_ReferenceGenerationFromString
(
self
):
def
test_02_ReferenceGenerationFromString
(
self
):
s
=
"a test by ivan !@#$%^&*()[]
\
\
é"
s
=
"a test by ivan !@#$%^&*()[]
\
\
é"
...
...
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