Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
ResourceRegistries.tests.testCSSRegistry.TestToolExpression Class Reference
Inheritance diagram for ResourceRegistries.tests.testCSSRegistry.TestToolExpression:
Inheritance graph
Collaboration diagram for ResourceRegistries.tests.testCSSRegistry.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 177 of file

Member Function Documentation

Definition at line 179 of file

00180     def afterSetUp(self):
00181         self.tool = getattr(self.portal, CSSTOOLNAME)
00182         self.tool.clearResources()

Definition at line 194 of file

00195     def testExpressionInFolder(self):
00196         self.folder.invokeFactory('Document', 'eggs')
00197         context = self.folder
00198         self.failUnless(self.tool.evaluateExpression(
00199                         'python:"eggs" in object.objectIds()', context))

Here is the call graph for this function:

Definition at line 189 of file

00190     def testNormalExpression(self):
00191         context = self.portal
00192         self.failUnless(self.tool.evaluateExpression('object/absolute_url',
00193                                                      context))

Here is the call graph for this function:

Definition at line 183 of file

00184     def testSimplestExpression(self):
00185         context = self.portal
00186         self.failUnless(self.tool.evaluateExpression('python:1', context))
00187         self.failIf(self.tool.evaluateExpression('python:0', context))
00188         self.failUnless(self.tool.evaluateExpression('python:0+1', context))

Here is the call graph for this function:

Member Data Documentation

Definition at line 180 of file

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