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
Łukasz Nowak
erp5
Commits
2788146d
Commit
2788146d
authored
Dec 29, 2011
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't check parameter's length.
This prevent using iterators, and there is an easy alternative.
parent
96e9ff99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
product/ERP5/tests/testInventoryAPI.py
product/ERP5/tests/testInventoryAPI.py
+2
-1
No files found.
product/ERP5/tests/testInventoryAPI.py
View file @
2788146d
...
@@ -2336,7 +2336,6 @@ class TestInventoryDocument(InventoryAPITestCase):
...
@@ -2336,7 +2336,6 @@ class TestInventoryDocument(InventoryAPITestCase):
inventory_list
=
inventory_list
.
dictionaries
()
inventory_list
=
inventory_list
.
dictionaries
()
else
:
else
:
inventory_list
=
inventory_list
[:]
# That list is modified in this method
inventory_list
=
inventory_list
[:]
# That list is modified in this method
self
.
assertEquals
(
len
(
inventory_list
),
len
(
criterion_dict_list
))
for
criterion_dict
in
criterion_dict_list
:
for
criterion_dict
in
criterion_dict_list
:
success
=
False
success
=
False
for
inventory_position
in
xrange
(
len
(
inventory_list
)):
for
inventory_position
in
xrange
(
len
(
inventory_list
)):
...
@@ -2362,6 +2361,8 @@ class TestInventoryDocument(InventoryAPITestCase):
...
@@ -2362,6 +2361,8 @@ class TestInventoryDocument(InventoryAPITestCase):
else
:
else
:
raise
AssertionError
,
'No line in %r match %r'
%
\
raise
AssertionError
,
'No line in %r match %r'
%
\
(
inventory_list
,
criterion_dict
)
(
inventory_list
,
criterion_dict
)
# Check all expected lines have been found.
self
.
assertFalse
(
inventory_list
)
def
assertInventoryEquals
(
self
,
value
,
inventory_kw
):
def
assertInventoryEquals
(
self
,
value
,
inventory_kw
):
"""
"""
...
...
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