From 79a55755599ff9c1ae7c830ff0e57ede1e6311a4 Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Wed, 14 Mar 2012 16:04:06 +0100 Subject: [PATCH] No need to filter in python --- master/product/Vifib/tests/testVifibSlapWebService.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/master/product/Vifib/tests/testVifibSlapWebService.py b/master/product/Vifib/tests/testVifibSlapWebService.py index 9abe78a88..bbaa3ee4f 100644 --- a/master/product/Vifib/tests/testVifibSlapWebService.py +++ b/master/product/Vifib/tests/testVifibSlapWebService.py @@ -402,11 +402,13 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): computer_partition = self.portal.portal_catalog.getResultValue( uid=sequence['computer_partition_uid']) delivery_line_list = [q.getObject() for q in self.portal.portal_catalog( - aggregate_relative_url=computer_partition.getRelativeUrl(), + default_aggregate_uid=ComplexQuery( + Query(default_aggregate_uid=computer_partition.getUid()), + Query(default_aggregate_uid=sequence['software_instance_uid']), + operator="AND"), portal_type=self.sale_packing_list_line_portal_type, simulation_state=state, - resource_relative_url=resource) if sequence['software_instance_uid'] - in q.getAggregateUidList()] + resource_relative_url=resource)] self.assertEqual(delivery_line_amount, len(delivery_line_list)) def _checkComputerPartitionNoSalePackingList(self, resource, sequence): -- 2.30.9