Esempio n. 1
0
 def testOldContentMadeExtensible(self):
     id = self.folder.invokeFactory(EVENT_PORTAL_TYPE, BIRTH_ID)
     birth = getattr(self.folder, id)
     self.failIf(IPFGExtensible.providedBy(birth))
     self.loginAsManager()
     populate(self.portal)
     self.failUnless(IPFGExtensible.providedBy(birth))
Esempio n. 2
0
 def testOldContentNoLongerExtensible(self):
     id = self.folder.invokeFactory(EVENT_PORTAL_TYPE, BIRTH_ID)
     birth = getattr(self.folder, id)
     self.loginAsManager()
     populate(self.portal)
     tool = getToolByName(self.portal, TOOL_ID)
     tool.resetFormForPortalType(EVENT_PORTAL_TYPE)
     self.failIf(IPFGExtensible.providedBy(birth))