Exemplo n.º 1
0
 def testIterateActionsMigratedIfIterateInstalled(self):
     self.qi.installProduct('plone.app.iterate')
     self.actions.object_buttons.iterate_checkin.permissions = (
         'Modify portal content',)
     three1_beta1(self.portal)
     self.assertEqual(
         self.actions.object_buttons.iterate_checkin.permissions,
         ('iterate : Check in content',))
Exemplo n.º 2
0
 def testIterateActionsMigratedIfIterateInstalled(self):
     self.qi.installProduct('plone.app.iterate')
     self.actions.object_buttons.iterate_checkin.permissions = (
         'Modify portal content', )
     three1_beta1(self.portal)
     self.assertEqual(
         self.actions.object_buttons.iterate_checkin.permissions,
         ('iterate : Check in content', ))
Exemplo n.º 3
0
 def testIterateInstalledButActionMissing(self):
     self.qi.installProduct('plone.app.iterate')
     self.actions.object_buttons.manage_delObjects(['iterate_checkin'])
     three1_beta1(self.portal)
     self.assertFalse('iterate_checkin' in
                 self.actions.object_buttons.objectIds())
Exemplo n.º 4
0
 def testIterateInstalledButActionMissing(self):
     self.qi.installProduct('plone.app.iterate')
     self.actions.object_buttons.manage_delObjects(['iterate_checkin'])
     three1_beta1(self.portal)
     self.assertFalse(
         'iterate_checkin' in self.actions.object_buttons.objectIds())