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

Check updated PPL constraint.

parent 88e51bd2
...@@ -376,6 +376,25 @@ class TestVifibPurchasePackingListLineConstraint(testVifibMixin): ...@@ -376,6 +376,25 @@ class TestVifibPurchasePackingListLineConstraint(testVifibMixin):
computer.validate() computer.validate()
self.assertFalse(consistency_message_state in getMessageList(line)) self.assertFalse(consistency_message_state in getMessageList(line))
def test_aggregate_software_installation(self):
consistency_message_existence = 'There should be exactly one Software '\
'Installation present in Items'
line = self.portal.purchase_packing_list_module.newContent(
portal_type='Purchase Packing List').newContent(
portal_type='Purchase Packing List Line',
resource=self.portal.portal_preferences\
.getPreferredSoftwareSetupResource())
self.assertTrue(consistency_message_existence in getMessageList(line))
software_installation = self.portal.software_installation_module.newContent(
portal_type='Software Installation')
line.setAggregate(software_installation.getRelativeUrl())
self.assertFalse(consistency_message_existence in getMessageList(line))
def test_aggregate_software_release(self): def test_aggregate_software_release(self):
consistency_message_existence = 'There should be exactly one Software '\ consistency_message_existence = 'There should be exactly one Software '\
'Release present in Items' 'Release present in Items'
......
476 477
\ No newline at end of file \ No newline at end of file
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