iterators don't have len()

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30693 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d30b493c
......@@ -194,7 +194,7 @@ class TestOrderBuilderMixin(TestOrderMixin):
order_cell_list = order_line.contentValues(filter={'portal_type':self.order_cell_portal_type})
self.assertEquals(
len(order_cell_list),
len(self.wanted_quantity_matrix.itervalues())
len(self.wanted_quantity_matrix.values())
)
for order_cell in order_cell_list:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment