Back to index

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

List of all members.

Public Member Functions

def afterSetUp
def renderer
def test_recent_items
def test_recently_modified_link

Detailed Description

Definition at line 71 of file test_recent_portlet.py.


Member Function Documentation

Definition at line 73 of file test_recent_portlet.py.

00073 
00074     def afterSetUp(self):
00075         setHooks()
00076         setSite(self.portal)

Here is the call graph for this function:

def plone.app.portlets.tests.test_recent_portlet.TestRenderer.renderer (   self,
  context = None,
  request = None,
  view = None,
  manager = None,
  assignment = None 
)

Definition at line 77 of file test_recent_portlet.py.

00077 
00078     def renderer(self, context=None, request=None, view=None, manager=None, assignment=None):
00079         context = context or self.folder
00080         request = request or self.folder.REQUEST
00081         view = view or self.folder.restrictedTraverse('@@plone')
00082         manager = manager or getUtility(IPortletManager, name='plone.rightcolumn', context=self.portal)
00083         assignment = assignment or recent.Assignment()
00084 
00085         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 86 of file test_recent_portlet.py.

00086 
00087     def test_recent_items(self):
00088         r = self.renderer(assignment=recent.Assignment(count=5))
00089         self.assertEquals(5, len(r.recent_items()))

Here is the call graph for this function:

Definition at line 90 of file test_recent_portlet.py.

00090 
00091     def test_recently_modified_link(self):
00092         r = self.renderer(assignment=recent.Assignment(count=5))
00093         self.failUnless(r.recently_modified_link().endswith('/recently_modified'))

Here is the call graph for this function:


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