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
Collaboration diagram for ResourceRegistries.tests.testKSSRegistry.TestToolExpression:
Collaboration graph

List of all members.

Public Member Functions

def afterSetUp
def testSimplestExpression
def testNormalExpression
def testExpressionInFolder

Public Attributes


Detailed Description

Definition at line 150 of file

Member Function Documentation

Definition at line 152 of file

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

Definition at line 167 of file

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))

Here is the call graph for this function:

Definition at line 162 of file

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

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

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