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

Relax condition.

As request is used to request destruction, ignore instances related to only
delivered cleanup deliveries.
parent b423b3e6
...@@ -614,9 +614,13 @@ class TestVifibSlapWebServiceMixin(testVifibMixin): ...@@ -614,9 +614,13 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
portal_type=software_instance_portal_type, portal_type=software_instance_portal_type,
title=software_title): title=software_title):
try: try:
software_instance.Item_getInstancePackingListLine(cleanup_resource) cleanup_line = software_instance.Item_getInstancePackingListLine(
cleanup_resource)
except ValueError: except ValueError:
software_instance_list.append(software_instance) software_instance_list.append(software_instance)
else:
if cleanup_line.getSimulationState() != 'delivered':
software_instance_list.append(software_instance)
self.assertEqual(1, len(software_instance_list)) self.assertEqual(1, len(software_instance_list))
software_instance = software_instance_list[0] software_instance = software_instance_list[0]
sequence.edit( sequence.edit(
......
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