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
[legend]
Collaboration diagram for ResourceRegistries.tests.testCSSRegistry.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 177 of file testCSSRegistry.py.


Member Function Documentation

Definition at line 179 of file testCSSRegistry.py.

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

Definition at line 194 of file testCSSRegistry.py.

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

Here is the call graph for this function:

Definition at line 189 of file testCSSRegistry.py.

00189 
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 testCSSRegistry.py.

00183 
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 testCSSRegistry.py.


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