From 384c08de7241ef932d696038d4138076fee9d870 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C5=81ukasz=20Nowak?= <luke@nexedi.com>
Date: Thu, 31 May 2012 16:42:41 +0200
Subject: [PATCH] Follow up db2311b84ffd2be10c2122e7f9e918a74924a38e

---
 master/product/Vifib/tests/testVifibSlapWebService.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/master/product/Vifib/tests/testVifibSlapWebService.py b/master/product/Vifib/tests/testVifibSlapWebService.py
index 5a86dce58..b9131ba73 100644
--- a/master/product/Vifib/tests/testVifibSlapWebService.py
+++ b/master/product/Vifib/tests/testVifibSlapWebService.py
@@ -3757,7 +3757,9 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
         .getAggregateRelatedValueList(
             portal_type=self.sale_packing_list_line_portal_type):
       if sequence['software_instance_uid'] in delivery_line\
-          .getAggregateUidList():
+          .getAggregateUidList() and delivery_line\
+          .getResource() == self.portal.portal_preferences\
+            .getPreferredInstanceSetupResource():
         computer_partition_sale_packing_list_line_list.append(delivery_line)
     self.assertEqual(1, len(computer_partition_sale_packing_list_line_list))
 
-- 
2.30.9