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
Laurent S
erp5
Commits
bdd36aad
Commit
bdd36aad
authored
Mar 14, 2012
by
Yusei Tahara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test more about list setter.
parent
22ebb8d6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
product/CMFCategory/tests/testCMFCategory.py
product/CMFCategory/tests/testCMFCategory.py
+17
-0
No files found.
product/CMFCategory/tests/testCMFCategory.py
View file @
bdd36aad
...
...
@@ -198,6 +198,23 @@ class TestCMFCategory(ERP5TypeTestCase):
self
.
assertEqual
(
p1
.
getDefaultRegion
(),
self
.
region1
)
self
.
assertEqual
(
p1
.
getRegionList
(),
self
.
region_list
)
p1
.
setRegion
(
self
.
region1
)
self
.
assertEqual
(
p1
.
getRegion
(),
self
.
region1
)
region_list
=
p1
.
getRegionList
()
p1
.
setRegionList
(
region_list
)
self
.
assertEqual
(
p1
.
getRegion
(),
self
.
region1
)
region_list
=
[
p1
.
getRegion
()]
p1
.
setRegionList
(
region_list
)
self
.
assertEqual
(
p1
.
getRegion
(),
self
.
region1
)
p1
.
setRegion
(
None
)
self
.
assertEqual
(
p1
.
getRegion
(),
None
)
region_list
=
p1
.
getRegionList
()
p1
.
setRegionList
(
region_list
)
self
.
assertEqual
(
p1
.
getRegion
(),
None
)
region_list
=
[
p1
.
getRegion
()]
p1
.
setRegionList
(
region_list
)
self
.
assertEqual
(
p1
.
getRegion
(),
None
)
def
test_03_CategoryValue
(
self
):
# Test if we can get categories values
region_value
=
self
.
portal
.
portal_categories
.
resolveCategory
(
'region/%s'
%
self
.
region1
)
...
...
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