Commit b7fd99fe authored by Jérome Perrin's avatar Jérome Perrin

group_by_resource is implicit



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14121 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1d93e1a5
......@@ -666,7 +666,7 @@ class TestInventoryList(InventoryAPITestCase):
self._makeMovement(resource_value=self.other_resource, quantity=100)
# group_by_resource is implicit ...
inventory_list = getInventoryList(node_uid=self.node.getUid(),
group_by_node=1, group_by_resource=1)
group_by_node=1)
self.assertEquals(2, len(inventory_list))
self.assertEquals([r for r in inventory_list if r.resource_relative_url ==
self.resource.getRelativeUrl()][0].inventory, 100)
......
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