Commit 255d6212 authored by Łukasz Nowak's avatar Łukasz Nowak

Support all types of non destroyed instances.

Instance can be destroyed when no cleanup delivery is related, but when order
line got cancelled.
parent 098bb79b
......@@ -372,9 +372,7 @@ class TestVifibSlapWebServiceMixin(testVifibMixin):
portal_type=self.software_instance_portal_type,
title=sequence['requested_reference']):
# only not yet destroyed ones
try:
software_instance.Item_getInstancePackingListLine(cleanup_resource)
except ValueError:
if software_instance.SoftwareInstance_getStatus() != 'Destroyed':
software_instance_list.append(software_instance)
self.assertEqual(1, len(software_instance_list))
......
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