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
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
Kasra Jamshidi
erp5
Commits
eec43006
Commit
eec43006
authored
Nov 20, 2012
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test new thread reference do no overlap any other traversable object.
parent
9d7f2574
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
product/ERP5/tests/testERP5Discussion.py
product/ERP5/tests/testERP5Discussion.py
+12
-0
No files found.
product/ERP5/tests/testERP5Discussion.py
View file @
eec43006
...
...
@@ -186,6 +186,18 @@ class TestERP5Discussion(ERP5TypeTestCase):
self
.
assertSameSet
([],
web_section1
.
getDocumentValueList
())
self
.
assertSameSet
([],
web_section2
.
getDocumentValueList
())
# 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
(
'image_module'
,
'test1 body'
)
self
.
tic
()
self
.
assertNotEqual
(
web_section1
.
getId
(),
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Discussion Thread'
,
title
=
web_section1
.
getId
()).
getReference
())
self
.
assertNotEqual
(
'image_module'
,
portal
.
portal_catalog
.
getResultValue
(
portal_type
=
'Discussion Thread'
,
title
=
'image_module'
).
getReference
())
def
test_02_ReferenceGenerationFromString
(
self
):
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