Back to index

plone3  3.1.7
Public Member Functions | Static Public Attributes
plone.app.portlets.tests.test_configuration.TestZCML Class Reference
Inheritance diagram for plone.app.portlets.tests.test_configuration.TestZCML:
Inheritance graph
[legend]
Collaboration diagram for plone.app.portlets.tests.test_configuration.TestZCML:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def testPortletTypeInterfaceRegistered
def testFactoryRegistered
def testRendererRegistered
def testAddViewRegistered
def testEditViewRegistered

Static Public Attributes

 layer = TestPortletZCMLLayer

Detailed Description

Definition at line 153 of file test_configuration.py.


Member Function Documentation

Definition at line 175 of file test_configuration.py.

00175 
00176     def testAddViewRegistered(self):
00177         request = self.portal.REQUEST
00178         adding = PortletAdding(self.portal, request)
00179         
00180         addview = getMultiAdapter((adding, request), name=u"portlets.test.Test")
00181         self.failUnless(isinstance(addview, TestAddForm))
        

Here is the call graph for this function:

Definition at line 182 of file test_configuration.py.

00182 
00183     def testEditViewRegistered(self):
00184         assignment = TestAssignment()
00185         request = self.portal.REQUEST
00186         
00187         editview = getMultiAdapter((assignment, request), name=u"edit")
00188         self.failUnless(isinstance(editview, TestEditForm))

Definition at line 161 of file test_configuration.py.

00161 
00162     def testFactoryRegistered(self):
00163         factory = getUtility(IFactory, name=u"portlets.test.Test")
00164         self.assertEquals(TestAssignment, factory._callable)
    

Definition at line 157 of file test_configuration.py.

00157 
00158     def testPortletTypeInterfaceRegistered(self):
00159         iface = getUtility(IPortletTypeInterface, name=u"portlets.test.Test")
00160         self.assertEquals(ITestPortlet, iface)
        

Definition at line 165 of file test_configuration.py.

00165 
00166     def testRendererRegistered(self):
00167         context = self.portal
00168         request = self.portal.REQUEST
00169         view = DummyView(context, request)
00170         manager = PortletManager()
00171         assignment = TestAssignment()
00172         
00173         renderer = getMultiAdapter((context, request, view, manager, assignment), IPortletRenderer)
00174         self.failUnless(isinstance(renderer, TestRenderer))
        

Here is the call graph for this function:


Member Data Documentation

Definition at line 155 of file test_configuration.py.


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