Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
ResourceRegistries.tests.testKSSRegistry.TestToolExpression Class Reference
Inheritance diagram for ResourceRegistries.tests.testKSSRegistry.TestToolExpression:
Inheritance graph
[legend]
Collaboration diagram for ResourceRegistries.tests.testKSSRegistry.TestToolExpression:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def afterSetUp
def testSimplestExpression
def testNormalExpression
def testExpressionInFolder

Public Attributes

 tool

Detailed Description

Definition at line 150 of file testKSSRegistry.py.


Member Function Documentation

Definition at line 152 of file testKSSRegistry.py.

00152 
00153     def afterSetUp(self):
00154         self.tool = getattr(self.portal, KSSTOOLNAME)
00155         self.tool.clearResources()

Definition at line 167 of file testKSSRegistry.py.

00167 
00168     def testExpressionInFolder(self):
00169         self.folder.invokeFactory('Document', 'eggs')
00170         context = self.folder
00171         self.failUnless(self.tool.evaluateExpression(
00172                         'python:"eggs" in object.objectIds()', context))
00173 

Here is the call graph for this function:

Definition at line 162 of file testKSSRegistry.py.

00162 
00163     def testNormalExpression(self):
00164         context = self.portal
00165         self.failUnless(self.tool.evaluateExpression('object/absolute_url',
00166                                                      context))

Here is the call graph for this function:

Definition at line 156 of file testKSSRegistry.py.

00156 
00157     def testSimplestExpression(self):
00158         context = self.portal
00159         self.failUnless(self.tool.evaluateExpression('python:1', context))
00160         self.failIf(self.tool.evaluateExpression('python:0', context))
00161         self.failUnless(self.tool.evaluateExpression('python:0+1', context))

Here is the call graph for this function:


Member Data Documentation

Definition at line 153 of file testKSSRegistry.py.


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