Changeset 3153 in products for quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/tests
- Timestamp:
- Apr 20, 2011 8:58:26 AM (13 years ago)
- Location:
- quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/tests/base.py
r3151 r3153 10 10 from collective.testcaselayer.ptc import BasePTCLayer, ptc_layer 11 11 12 from Products.CMFCore.utils import getToolByName13 12 14 13 from quintagroup.dropdownmenu import PROJECT_NAME -
quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/tests/test_controlpanel.py
r3151 r3153 3 3 from plone.registry import Registry 4 4 5 from base import * 5 from base import TestCase 6 from base import IPREFIX 6 7 8 from Products.CMFCore.utils import getToolByName 7 9 from quintagroup.dropdownmenu.interfaces import IDropDownMenuSettings 8 10 … … 24 26 def test_show_icons(self): 25 27 # Check show_icons record 26 s how_icons = self.registry.records[IPREFIX + 'show_icons']28 self.registry.records[IPREFIX + 'show_icons'] 27 29 28 30 self.failUnless('show_icons' in IDropDownMenuSettings) … … 31 33 def test_show_content_tabs(self): 32 34 # Check show_content_tabs record 33 show_content_tabs = self.registry.records[ 34 IPREFIX + 'show_content_tabs'] 35 self.registry.records[IPREFIX + 'show_content_tabs'] 35 36 36 37 self.failUnless('show_content_tabs' in IDropDownMenuSettings) … … 39 40 def test_show_nonfolderish_tabs(self): 40 41 # Check show_nonfolderish_tabs record 41 show_nonfolderish_tabs = self.registry.records[ 42 IPREFIX + 'show_nonfolderish_tabs'] 42 self.registry.records[IPREFIX + 'show_nonfolderish_tabs'] 43 43 44 44 self.failUnless('show_nonfolderish_tabs' in IDropDownMenuSettings) … … 48 48 def test_content_before_actions_tabs(self): 49 49 # Check content_before_actions_tabs record 50 content_before_actions_tabs = self.registry.records[ 51 IPREFIX + 'content_before_actions_tabs'] 50 self.registry.records[IPREFIX + 'content_before_actions_tabs'] 52 51 53 52 self.failUnless('content_before_actions_tabs' in IDropDownMenuSettings) … … 57 56 def test_content_tabs_level(self): 58 57 # Check content_tabs_level record 59 content_tabs_level = self.registry.records[ 60 IPREFIX + 'content_tabs_level'] 58 self.registry.records[IPREFIX + 'content_tabs_level'] 61 59 62 60 self.failUnless('content_tabs_level' in IDropDownMenuSettings) … … 65 63 def test_show_actions_tabs(self): 66 64 # Check show_actions_tabs record 67 show_actions_tabs = self.registry.records[ 68 IPREFIX + 'show_actions_tabs'] 65 self.registry.records[IPREFIX + 'show_actions_tabs'] 69 66 70 67 self.failUnless('show_actions_tabs' in IDropDownMenuSettings) … … 73 70 def test_actions_tabs_level(self): 74 71 # Check actions_tabs_level record 75 actions_tabs_level = self.registry.records[ 76 IPREFIX + 'actions_tabs_level'] 72 self.registry.records[IPREFIX + 'actions_tabs_level'] 77 73 78 74 self.failUnless('actions_tabs_level' in IDropDownMenuSettings) … … 81 77 def test_actions_category(self): 82 78 # Check actions_category record 83 actions_category =self.registry.records[IPREFIX + 'actions_category']79 self.registry.records[IPREFIX + 'actions_category'] 84 80 85 81 self.failUnless('actions_category' in IDropDownMenuSettings) … … 89 85 def test_nested_category_prefix(self): 90 86 # Check nested_category_prefix record 91 nested_category_prefix = self.registry.records[ 92 IPREFIX + 'nested_category_prefix'] 87 self.registry.records[IPREFIX + 'nested_category_prefix'] 93 88 94 89 self.failUnless('nested_category_prefix' in IDropDownMenuSettings) … … 98 93 def test_nested_category_sufix(self): 99 94 # Check nested_category_sufix record 100 nested_category_sufix = self.registry.records[ 101 IPREFIX + 'nested_category_sufix'] 95 self.registry.records[IPREFIX + 'nested_category_sufix'] 102 96 103 97 self.failUnless('nested_category_sufix' in IDropDownMenuSettings) -
quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/tests/test_docs.py
r3151 r3153 4 4 #from zope.testing import doctestunit 5 5 #from zope.component import testing 6 from base import TestCase, ztc7 6 8 7 -
quintagroup.dropdownmenu/trunk/quintagroup/dropdownmenu/tests/test_installation.py
r3151 r3153 2 2 # Test product's installation 3 3 # 4 import string5 4 from zope.component import queryUtility 6 from zope.component import queryMultiAdapter7 from zope.viewlet.interfaces import IViewletManager8 5 from plone.registry.interfaces import IRegistry 9 6 from plone.browserlayer import utils as blutils 10 7 11 from base import * 8 from Products.CMFCore.utils import getToolByName 9 10 from quintagroup.dropdownmenu.tests.base import TestCase, TestCaseUnInstalled 11 from quintagroup.dropdownmenu.tests.base import IPREFIX 12 13 from quintagroup.dropdownmenu import PROJECT_NAME 14 from quintagroup.dropdownmenu.interfaces import IDropDownMenuLayer 15 12 16 CSS_RESOURCES = ["++resource++drop_down.css", ] 13 17 DEPENDENCIES = ["plone.app.registry", ]
Note: See TracChangeset
for help on using the changeset viewer.