Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
NuPlone.tests.testStyleInstallation.testDisplayViewsRegistration Class Reference

List of all members.

Public Member Functions

def afterSetUp
def testDisplayViewsRegistered

Public Attributes

 ttool

Detailed Description

Definition at line 105 of file testStyleInstallation.py.


Member Function Documentation

Definition at line 107 of file testStyleInstallation.py.

00107 
00108     def afterSetUp(self):
00109         self.ttool = getattr(self.portal, 'portal_types')

Test if additional display views were added to specified types.

Definition at line 110 of file testStyleInstallation.py.

00110 
00111     def testDisplayViewsRegistered(self):
00112         """Test if additional display views were added to specified types."""
00113         if DISPLAY_VIEWS:
00114             for pt, views in DISPLAY_VIEWS.items():
00115                 FTI = getattr(self.ttool, pt)
00116                 registered_views = FTI.view_methods
00117                 for view in views:
00118                     self.failUnless(view in registered_views)
00119 


Member Data Documentation

Definition at line 108 of file testStyleInstallation.py.


The documentation for this class was generated from the following file: