Example #1
0
 def test_behavior_active_image(self):
     content = api.content.create(
         type='Image',
         title='Holidays previous year image',
         container=self.source_folder)
     self.assertFalse(IPublishWidely.providedBy(content))
     adapted = IPublishWidely(content)
     self.assertTrue(IPublishWidely.providedBy(adapted))
Example #2
0
 def test_behavior_active_link(self):
     content = api.content.create(
         type='Link',
         title='Holidays previous year link',
         container=self.source_folder)
     api.content.transition(content, 'publish')
     self.assertFalse(IPublishWidely.providedBy(content))
     adapted = IPublishWidely(content)
     self.assertTrue(IPublishWidely.providedBy(adapted))
Example #3
0
 def test_behavior_active_document(self):
     content = self.source_document
     self.assertFalse(IPublishWidely.providedBy(content))
     adapted = IPublishWidely(content)
     self.assertTrue(IPublishWidely.providedBy(adapted))