Back to index

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

List of all members.

Public Member Functions

def afterSetUp
def testAdapting
def testEquivalence

Public Attributes

 manager

Detailed Description

Definition at line 34 of file test_mapping.py.


Member Function Documentation

Definition at line 36 of file test_mapping.py.

00036 
00037     def afterSetUp(self):
00038         setHooks()
00039         setSite(self.portal)
00040         self.manager = getUtility(IPortletManager, name=u'plone.leftcolumn')

Here is the call graph for this function:

Definition at line 41 of file test_mapping.py.

00041 
00042     def testAdapting(self):
00043         mapping = getMultiAdapter((self.folder, self.manager,), IPortletAssignmentMapping)
00044         self.assertEquals(0, len(mapping))

Here is the call graph for this function:

Definition at line 45 of file test_mapping.py.

00045 
00046     def testEquivalence(self):
00047         mapping = getMultiAdapter((self.folder, self.manager,), IPortletAssignmentMapping)
00048         c = classic.Assignment()
00049         mapping['foo'] = c
00050 
00051         mapping2 = getMultiAdapter((self.folder, self.manager,), IPortletAssignmentMapping)
00052         self.assertEquals(mapping2['foo'], c)

Here is the call graph for this function:


Member Data Documentation

Definition at line 39 of file test_mapping.py.


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