Changeset 3514 in products for quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/tests
- Timestamp:
- Aug 22, 2012 12:40:59 PM (12 years ago)
- Location:
- quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/tests/test_controlpanel.py
r3153 r3514 21 21 # Check if dropdownmenu is in the control panel 22 22 self.controlpanel = getToolByName(self.portal, "portal_controlpanel") 23 self.failUnless('dropdownmenu' in [a.getAction(self)['id'] 24 for a in self.controlpanel.listActions()]) 23 self.failUnless('dropdownmenu' in [ 24 a.getAction(self)['id'] 25 for a in self.controlpanel.listActions()]) 25 26 26 27 def test_show_icons(self): -
quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/tests/test_docs.py
r3153 r3514 28 28 # test_class=TestCase), 29 29 30 30 ]) -
quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/tests/test_installation.py
r3153 r3514 25 25 qi = self.portal.portal_quickinstaller 26 26 self.assertTrue(qi.isProductInstalled(PROJECT_NAME), 27 '%s is not installed.' % PROJECT_NAME)27 '%s is not installed.' % PROJECT_NAME) 28 28 29 29 def testInstalledDependencies(self): 30 30 cp = self.portal.portal_controlpanel 31 31 configlets = [ai['id'] for ai in cp.listActionInfos( 32 32 check_permissions=0)] 33 33 self.assertTrue([1 for ai in configlets if ai == "plone.app.registry"], 34 'Not installed required plone.app.registry product.')34 'Not installed required plone.app.registry product.') 35 35 36 36 def testStyles(self): … … 43 43 cp = self.portal.portal_controlpanel 44 44 configlets = [ai['id'] for ai in cp.listActionInfos( 45 45 check_permissions=0)] 46 46 for cid in CONFIGLETS: 47 self.assertTrue([1 for ai in configlets if ai == cid], 47 self.assertTrue([ 48 1 for ai in configlets if ai == cid], 48 49 'No "%s" configlet added to plone control panel' % cid) 49 50 … … 56 57 afield = "show_content_tabs" 57 58 self.assertTrue(registry.records.get(IPREFIX + afield, None), 58 "Not registered '%s' registry interface" % IPREFIX)59 "Not registered '%s' registry interface" % IPREFIX) 59 60 60 61 … … 64 65 qi = self.portal.portal_quickinstaller 65 66 self.assertFalse(qi.isProductInstalled(PROJECT_NAME), 66 '%s not uninstalled.' % PROJECT_NAME)67 '%s not uninstalled.' % PROJECT_NAME) 67 68 68 69 def testStyles(self): … … 75 76 cp = self.portal.portal_controlpanel 76 77 configlets = [ai['id'] for ai in cp.listActionInfos( 77 78 check_permissions=0)] 78 79 for cid in CONFIGLETS: 79 80 self.assertFalse([1 for ai in configlets if ai == cid], 80 '"%s" configlet not uninstalled '\81 'from plone control panel' % cid)81 '"%s" configlet not uninstalled ' 82 'from plone control panel' % cid) 82 83 83 84 def testBrowserLayer(self): 84 85 self.assertFalse(IDropDownMenuLayer in blutils.registered_layers(), 85 "Not unregistered 'IDropDownMenuLayer' browser layer")86 "Not unregistered 'IDropDownMenuLayer' browser layer") 86 87 87 88 def testRegistry(self): … … 89 90 afield = "show_content_tabs" 90 91 self.assertFalse(registry.records.get(IPREFIX + afield, None), 91 "Not unregistered '%s' registry interface" % IPREFIX)92 "Not unregistered '%s' registry interface" % IPREFIX) 92 93 93 94
Note: See TracChangeset
for help on using the changeset viewer.