Changeset 981
- Timestamp:
- 09/27/07 04:02:35
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
qSEOptimizer/branches/additional-keywords/tests/testQSEOptimizer.py
r978 r981 79 79 80 80 def test_skins_install(self): 81 skinstool=getToolByName(self.portal, 'portal_skins') 81 skinstool=getToolByName(self.portal, 'portal_skins') 82 82 83 83 for skin in skinstool.getSkinSelections(): … … 113 113 self.qi.uninstallProducts([PRODUCT]) 114 114 self.assertNotEqual(self.qi.isProductInstalled(PRODUCT), True,'qSEOptimizer is already installed') 115 skinstool=getToolByName(self.portal, 'portal_skins') 115 skinstool=getToolByName(self.portal, 'portal_skins') 116 116 117 117 for skin in skinstool.getSkinSelections(): … … 139 139 self.assert_(not PRODUCT in [a.getId() for a in configTool.listActions()], 'Configlet found after uninstallation') 140 140 141 141 142 class TestResponse(PloneTestCase.FunctionalTestCase): 142 143 … … 189 190 m = re.match('.*<!--\\s*no comments\\s*-->', self.html, re.S|re.M) 190 191 self.assert_(m, 'Comments not set in') 191 192 192 193 def testTagsOrder(self): 193 194 m = re.search('name="description".+name="keywords"', self.html, re.S|re.M) 194 195 self.assert_(m, "Meta tags order not supported.") 196 195 197 196 198 class TestAdditionalKeywords(PloneTestCase.FunctionalTestCase): … … 313 315 314 316 self.assert_(m, 'DC meta tags not avaliable when createManager=True') 317 315 318 316 319 TESTS = [TestInstallation, TestResponse, TestAdditionalKeywords, TestExposeDCMetaTags]
