[Zope3-checkins] CVS: Zope3/src/zope/pagetemplate/tests - test_basictemplate.py:1.4
Godefroid Chapelle
gotcha@swing.be
Tue, 25 Mar 2003 06:23:41 -0500
Update of /cvs-repository/Zope3/src/zope/pagetemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv20400/pagetemplate/tests
Modified Files:
test_basictemplate.py
Log Message:
merging template_usage branch
connection to menu usage still to be done
=== Zope3/src/zope/pagetemplate/tests/test_basictemplate.py 1.3 => 1.4 ===
--- Zope3/src/zope/pagetemplate/tests/test_basictemplate.py:1.3 Thu Mar 13 14:06:59 2003
+++ Zope3/src/zope/pagetemplate/tests/test_basictemplate.py Tue Mar 25 06:23:10 2003
@@ -59,6 +59,26 @@
expect = util.read_output('dtml1b.html')
util.check_xml(expect, o)
+ def test_template_usage(self):
+ tal = util.read_input('template_usage.html')
+ self.t.write(tal)
+
+ o = self.t(template_usage=u"test")
+ expect = util.read_output('template_usage1.html')
+ util.check_xml(expect, o)
+
+ o = self.t(template_usage=u"retest")
+ expect = util.read_output('template_usage2.html')
+ util.check_xml(expect, o)
+
+ o = self.t(template_usage=u"other")
+ expect = util.read_output('template_usage3.html')
+ util.check_xml(expect, o)
+
+ o = self.t(template_usage=u"")
+ expect = util.read_output('template_usage4.html')
+ util.check_xml(expect, o)
+
def test_batches_and_formatting(self):
# DTML test 3: batches and formatting:
pass # for unittest