def testFinalStepsWithMembersFolderDeleted(self):
     # We want the final steps to work even if the 'Members' folder
     # is gone
     self.loginAsPortalOwner()
     portal = self.portal
     portal.manage_delObjects(['Members'])
     setup_tool = getToolByName(self.portal, 'portal_setup')
     setuphandlers.importFinalSteps(setup_tool)  # raises error if fail
     self.assertTrue(1 == 1)
 def testFinalStepsWithMembersFolderDeleted(self):
     # We want the final steps to work even if the 'Members' folder
     # is gone
     self.loginAsPortalOwner()
     portal = self.portal
     portal.manage_delObjects(['Members'])
     setup_tool = getToolByName(self.portal, 'portal_setup')
     setuphandlers.importFinalSteps(setup_tool)  # raises error if fail
     self.assertTrue(1 == 1)
    def testFinalStepsWithMembersFolderDeleted(self):
        # We want the final steps to work even if the 'Members' folder
        # is gone
        self.loginAsPortalOwner()
        portal = self.portal
        portal.manage_delObjects(['Members'])
        class FakeContext:
            def getSite(self):
                return portal
            def readDataFile(self, filename):
                return True # Anything other than None runs the step

        setuphandlers.importFinalSteps(FakeContext()) # raises error if fail
        self.failUnless(1 == 1)
    def testFinalStepsWithMembersFolderDeleted(self):
        # We want the final steps to work even if the 'Members' folder
        # is gone
        self.loginAsPortalOwner()
        portal = self.portal
        portal.manage_delObjects(['Members'])

        class FakeContext:
            def getSite(self):
                return portal

            def readDataFile(self, filename):
                return True  # Anything other than None runs the step

        setuphandlers.importFinalSteps(FakeContext())  # raises error if fail
        self.assertTrue(1 == 1)