Back to index

plone3  3.1.7
Public Member Functions | Private Member Functions
CMFCore.tests.test_ActionInformation.ActionCategoryTests Class Reference

List of all members.

Public Member Functions

def test_z3interfaces
def test_listActions

Private Member Functions

def _makeOne

Detailed Description

Definition at line 34 of file test_ActionInformation.py.


Member Function Documentation

def CMFCore.tests.test_ActionInformation.ActionCategoryTests._makeOne (   self,
  args,
  kw 
) [private]

Definition at line 36 of file test_ActionInformation.py.

00036 
00037     def _makeOne(self, *args, **kw):
00038         from Products.CMFCore.ActionInformation import ActionCategory
00039 
00040         return ActionCategory(*args, **kw)

Definition at line 48 of file test_ActionInformation.py.

00048 
00049     def test_listActions(self):
00050         from Products.CMFCore.ActionInformation import Action
00051 
00052         ac = self._makeOne('foo')
00053         self.assertEqual( ac.listActions(), () )
00054 
00055         baz = Action('baz')
00056         ac._setObject('baz', baz)
00057         self.assertEqual( ac.listActions(), (baz,) )
00058 

Here is the call graph for this function:

Definition at line 41 of file test_ActionInformation.py.

00041 
00042     def test_z3interfaces(self):
00043         from zope.interface.verify import verifyClass
00044         from Products.CMFCore.ActionInformation import ActionCategory
00045         from Products.CMFCore.interfaces import IActionCategory
00046 
00047         verifyClass(IActionCategory, ActionCategory)


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