Commit 4ce0c6d7 authored by Romain Courteaud's avatar Romain Courteaud

Test person access to slaptool.

parent 8defe678
10 11
\ No newline at end of file \ No newline at end of file
...@@ -240,7 +240,7 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin): ...@@ -240,7 +240,7 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin):
self.partition.validate() self.partition.validate()
self.tic() self.tic()
def _makeComplexComputer(self): def _makeComplexComputer(self, person=None):
for i in range(1, 5): for i in range(1, 5):
id_ = 'partition%s' % i id_ = 'partition%s' % i
p = self.computer.newContent(portal_type='Computer Partition', p = self.computer.newContent(portal_type='Computer Partition',
...@@ -301,6 +301,7 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin): ...@@ -301,6 +301,7 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin):
hosting_subscription.edit( hosting_subscription.edit(
title=self.generateNewSoftwareTitle(), title=self.generateNewSoftwareTitle(),
reference="TESTSI-%s" % self.generateNewId(), reference="TESTSI-%s" % self.generateNewId(),
destination_section_value=person,
) )
kw = dict( kw = dict(
software_release=\ software_release=\
...@@ -326,6 +327,7 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin): ...@@ -326,6 +327,7 @@ class testSlapOSMixin(Products.Vifib.tests.VifibMixin.testVifibMixin):
hosting_subscription.edit( hosting_subscription.edit(
title=self.generateNewSoftwareTitle(), title=self.generateNewSoftwareTitle(),
reference="TESTSI-%s" % self.generateNewId(), reference="TESTSI-%s" % self.generateNewId(),
destination_section_value=person,
) )
kw = dict( kw = dict(
software_release=\ software_release=\
......
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