def testDeleteObjetMakesDiry(self): from euphorie.content.behaviour.dirtytree import isDirty from euphorie.content.behaviour.dirtytree import clearDirty self.loginAsPortalOwner() survey = self.create() survey.invokeFactory("euphorie.module", "module") clearDirty(survey) del survey["module"] self.assertEqual(isDirty(survey), True)
def testModifyObjectMakesDirty(self): from euphorie.content.behaviour.dirtytree import isDirty from euphorie.content.behaviour.dirtytree import clearDirty from zope.event import notify from zope.lifecycleevent import ObjectModifiedEvent self.loginAsPortalOwner() survey = self.create() survey.invokeFactory("euphorie.module", "module") clearDirty(survey) notify(ObjectModifiedEvent(survey["module"])) self.assertEqual(isDirty(survey), True)
def testModifyObjectMakesDirty(self): survey = self.create() survey.invokeFactory("euphorie.module", "module") clearDirty(survey) notify(ObjectModifiedEvent(survey["module"])) self.assertEqual(isDirty(survey), True)
def testDeleteObjetMakesDiry(self): survey = self.create() survey.invokeFactory("euphorie.module", "module") clearDirty(survey) del survey["module"] self.assertEqual(isDirty(survey), True)