Back to index

plone3  3.1.7
Public Member Functions | Public Attributes
ResourceRegistries.tests.testJSRegistry.TestJSToolExpression Class Reference
Inheritance diagram for ResourceRegistries.tests.testJSRegistry.TestJSToolExpression:
Inheritance graph
Collaboration diagram for ResourceRegistries.tests.testJSRegistry.TestJSToolExpression:
Collaboration graph

List of all members.

Public Member Functions

def afterSetUp
def testSimplestExpression
def testNormalExpression
def testExpressionInFolder

Public Attributes


Detailed Description

Definition at line 142 of file

Member Function Documentation

Definition at line 144 of file

00145     def afterSetUp(self):
00146         self.tool = getattr(self.portal, JSTOOLNAME)
00147         self.tool.clearResources()

Definition at line 159 of file

00160     def testExpressionInFolder(self):
00161         self.folder.invokeFactory('Document', 'eggs')
00162         context = self.folder
00163         self.failUnless(self.tool.evaluateExpression(
00164                         'python:"eggs" in object.objectIds()', context))

Here is the call graph for this function:

Definition at line 154 of file

00155     def testNormalExpression(self):
00156         context = self.portal
00157         self.failUnless(self.tool.evaluateExpression('object/absolute_url',
00158                                                      context))

Here is the call graph for this function:

Definition at line 148 of file

00149     def testSimplestExpression(self):
00150         context = self.portal
00151         self.failUnless(self.tool.evaluateExpression('python:1', context))
00152         self.failIf(self.tool.evaluateExpression('python:0', context))
00153         self.failUnless(self.tool.evaluateExpression('python:0+1', context))

Here is the call graph for this function:

Member Data Documentation

Definition at line 145 of file

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