[ZPT] CVS: Packages/Products/PageTemplates (Products/DC/PageTemplates) - testExpressions.py:1.6
evan@serenade.digicool.com
evan@serenade.digicool.com
Mon, 21 May 2001 12:54:46 -0400
Update of /cvs-repository/Packages/Products/PageTemplates/tests
In directory serenade:/home/evan/Zope/pt/lib/python/Products/PageTemplates/tests
Modified Files:
testExpressions.py
Log Message:
Eliminate path modifiers, fix up 'exists:', and make tests conform.
--- Updated File testExpressions.py in package Packages/Products/PageTemplates --
--- testExpressions.py 2001/05/11 23:44:56 1.5
+++ testExpressions.py 2001/05/21 16:54:16 1.6
@@ -10,12 +10,6 @@
e = Expressions.getEngine()
for p in ('x', 'x/y', 'x/y/z'):
e.compile(p)
- for m in range(2 ** 3):
- mods = ''
- if m & 1: mods = 'if'
- if m & 2: mods = mods + ' exists'
- if m & 4: mods = mods + ' nocall'
- e.compile('(%s) %s' % (mods, p))
e.compile('path:a|b|c/d/e')
e.compile('string:Fred')
e.compile('string:A$B')