import os, sys, re if __name__ == '__main__': execfile(os.path.join(sys.path[0], 'framework.py')) from Testing import ZopeTestCase from KrihvelTestCase import KrihvelTestCase from Testing.ZopeTestCase.functional import Functional from Products.Krihvel.config import * class TestCustomization(KrihvelTestCase,Functional): """ Test suite for verifying customization policy. """ def testSyndication(self): self.failUnless(self.portal.portal_syndication.isAllowed,"Syndication isn't turned on.") def testPortletLayout(self): for entry in self.portal.right_slots: self.failIf('calendar' in entry,'Calendar portlet is still visible') def testNoNavTree(self): for entry in self.portal.left_slots: self.failIf('navigation' in entry,'Navigation portlet is still visible') for entry in self.portal.right_slots: self.failIf('navigation' in entry,'Navigation portlet is still visible') def test_suite(): from unittest import TestSuite, makeSuite suite = TestSuite() suite.addTest(makeSuite(TestCustomization)) return suite if __name__ == '__main__': framework()