Commit db2311b8 authored by Łukasz Nowak's avatar Łukasz Nowak

Be interested only in setup delivery lines.

Currently packing lists are created faster, and this test method is used in
tests which are requesting stopped and started instances.
parent e3f547f2
...@@ -3736,9 +3736,12 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -3736,9 +3736,12 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
computer_partition = self._softwareInstance_getComputerPartition( computer_partition = self._softwareInstance_getComputerPartition(
software_instance) software_instance)
# There should be only one Sale Packing List Line # There should be only one Sale Packing List Line
sale_packing_list_line_list = software_instance\ sale_packing_list_line_list = self.portal.portal_catalog(
.getAggregateRelatedValueList( portal_type=self.sale_packing_list_line_portal_type,
portal_type=self.sale_packing_list_line_portal_type) default_aggregate_uid=software_instance.getUid(),
default_resource_uid=self.portal.restrictedTraverse(self.portal\
.portal_preferences.getPreferredInstanceSetupResource()).getUid()
)
self.assertEqual(1, len(sale_packing_list_line_list)) self.assertEqual(1, len(sale_packing_list_line_list))
sale_packing_list_line = sale_packing_list_line_list[0] sale_packing_list_line = sale_packing_list_line_list[0]
# This Sale Packing List Line shall have only one Computer Partition # This Sale Packing List Line shall have only one Computer Partition
......
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