Back to index

plone3  3.1.7
Public Member Functions
plone.portlet.collection.tests.test_portlet_collection.TestRenderer Class Reference
Inheritance diagram for plone.portlet.collection.tests.test_portlet_collection.TestRenderer:
Inheritance graph
Collaboration diagram for plone.portlet.collection.tests.test_portlet_collection.TestRenderer:
Collaboration graph

List of all members.

Public Member Functions

def afterSetUp
def renderer
def test_render

Detailed Description

Definition at line 64 of file

Member Function Documentation

Definition at line 66 of file

00067     def afterSetUp(self):
00068         self.setRoles(('Manager',))

Here is the call graph for this function:

def plone.portlet.collection.tests.test_portlet_collection.TestRenderer.renderer (   self,
  context = None,
  request = None,
  view = None,
  manager = None,
  assignment = None 

Definition at line 69 of file

00070     def renderer(self, context=None, request=None, view=None, manager=None, assignment=None):
00071         context = context or self.folder
00072         request = request or self.folder.REQUEST
00073         view = view or self.folder.restrictedTraverse('@@plone')
00074         manager = manager or getUtility(IPortletManager, name='plone.rightcolumn', context=self.portal)
00075         assignment = assignment or collection.Assignment(header=u"title")
00077         return getMultiAdapter((context, request, view, manager, assignment), IPortletRenderer)

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 78 of file

00079     def test_render(self):
00080         r = self.renderer(context=self.portal, assignment=collection.Assignment(header=u"title"))
00081         r = r.__of__(self.folder)
00082         r.update()
00083         output = r.render()
00085         # this test failed due to changed behavior. We'll not output anything if the portlet does not point to a collection
00087         #self.failUnless('title' in output)
00088         #self.failUnless('<b>text</b>' in output)

Here is the call graph for this function:

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