[ZPT] CVS: Packages/Products/PageTemplates - testHTMLTests.py:1.3
chrism@serenade.digicool.com
chrism@serenade.digicool.com
Mon, 26 Mar 2001 15:33:48 -0500
Update of /cvs-repository/Packages/Products/PageTemplates/tests
In directory serenade.digicool.com:/home/chrism/sandboxes/ZPT/lib/python/Products/PageTemplates/tests
Modified Files:
testHTMLTests.py
Log Message:
Added three tests.
--- Updated File testHTMLTests.py in package Packages/Products/PageTemplates --
--- testHTMLTests.py 2001/03/26 14:21:43 1.2
+++ testHTMLTests.py 2001/03/26 20:33:48 1.3
@@ -139,7 +139,35 @@
expect = open('output/TeeShop1.html').read()
out = t(getProducts=self.getProducts)
util.check_html(expect, out)
+
+ def checkSimpleLoop(self):
+ t = self.folder.t
+ t.write(open('input/Loop1.html').read())
+ expect = open('output/Loop1.html').read()
+ out = t()
+ util.check_html(expect, out)
+
+ def checkGlobalsShadowLocals(self):
+ t = self.folder.t
+ t.write(open('input/GlobalsShadowLocals.html').read())
+ expect = open('output/GlobalsShadowLocals.html').read()
+ out = t()
+ util.check_html(expect, out)
+
+ def checkStringExpressions(self):
+ t = self.folder.t
+ t.write(open('input/StringExpression.html').read())
+ expect = open('output/StringExpression.html').read()
+ out = t()
+ util.check_html(expect, out)
+ def checkReplaceWithNothing(self):
+ t = self.folder.t
+ t.write(open('input/CheckNothing.html').read())
+ expect = open('output/CheckNothing.html').read()
+ out = t()
+ util.check_html(expect, out)
+
def test_suite():
return unittest.makeSuite(HTMLTests, 'check')