Back to index

plone3  3.1.7
Public Member Functions
plone.app.portlets.tests.test_setup.TestProductInstall Class Reference
Inheritance diagram for plone.app.portlets.tests.test_setup.TestProductInstall:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.tests.test_setup.TestProductInstall:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testPortletManagersRegistered
def testInterfaces
def testAssignable
def testPortletTypesRegistered

Detailed Description

Definition at line 12 of file test_setup.py.


Member Function Documentation

Definition at line 14 of file test_setup.py.

00014 
00015     def afterSetUp(self):
00016         setHooks()
00017         setSite(self.portal)

Here is the call graph for this function:

Definition at line 34 of file test_setup.py.

00034 
00035     def testAssignable(self):
00036         self.failUnless(ILocalPortletAssignable.providedBy(self.folder))
00037         self.failUnless(ILocalPortletAssignable.providedBy(self.portal))

Here is the call graph for this function:

Definition at line 25 of file test_setup.py.

00025 
00026     def testInterfaces(self):
00027         left = getUtility(IPortletManager, 'plone.leftcolumn')
00028         right = getUtility(IPortletManager, 'plone.rightcolumn')
00029         dashboard = getUtility(IPortletManager, 'plone.dashboard1')
00030 
00031         self.failUnless(ILeftColumn.providedBy(left))
00032         self.failUnless(IRightColumn.providedBy(right))
00033         self.failUnless(IDashboard.providedBy(dashboard))

Definition at line 18 of file test_setup.py.

00018 
00019     def testPortletManagersRegistered(self):
00020         sm = getSiteManager(self.portal)
00021         registrations = [r.name for r in sm.registeredUtilities()
00022                             if IPortletManager == r.provided]
00023         self.assertEquals(['plone.dashboard1', 'plone.dashboard2', 'plone.dashboard3', 'plone.dashboard4',
00024                            'plone.leftcolumn', 'plone.rightcolumn'], sorted(registrations))

Here is the call graph for this function:

Definition at line 38 of file test_setup.py.

00038 
00039     def testPortletTypesRegistered(self):
00040         portlets = [u[0] for u in getUtilitiesFor(IPortletType)]
00041         self.failUnless('portlets.Classic' in portlets)
00042         self.failUnless('portlets.Login' in portlets)


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