[ZPT] CVS: Packages/Products/PageTemplates (Products/DC/PageTemplates) - testExpressions.py:1.5 testHTMLTests.py:1.7

evan@serenade.digicool.com evan@serenade.digicool.com
Fri, 11 May 2001 19:45:27 -0400


Update of /cvs-repository/Packages/Products/PageTemplates/tests
In directory serenade:/home/evan/Zope/pt/lib/python/Products/PageTemplates2/tests

Modified Files:
	testExpressions.py testHTMLTests.py 
Log Message:
Created PageTemplateFile module and class.
Implemented alternate path '|' operator.
Added 'default' builtin.
Made Expression types available to python expressions as functions.
Changed the way render() calls DTML.



--- Updated File testExpressions.py in package Packages/Products/PageTemplates --
--- testExpressions.py	2001/04/27 18:33:45	1.4
+++ testExpressions.py	2001/05/11 23:44:56	1.5
@@ -16,6 +16,7 @@
                 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')
         e.compile('string:a ${x/y} b ${y/z} c')

--- Updated File testHTMLTests.py in package Packages/Products/PageTemplates --
--- testHTMLTests.py	2001/04/09 12:24:17	1.6
+++ testHTMLTests.py	2001/05/11 23:44:56	1.7
@@ -189,6 +189,12 @@
       out = t()
       util.check_html(expect, out)
       
+   def checkPathAlt(self):
+      t = self.folder.t
+      t.write(read_input('CheckPathAlt.html'))
+      expect = read_output('CheckPathAlt.html')
+      out = t()
+      util.check_html(expect, out)
 
 
 def test_suite():