[Zope3-checkins] CVS: Zope3/src/zope/pagetemplate/tests - test_basictemplate.py:1.2.8.1

Godefroid Chapelle gotcha@swing.be
Thu, 13 Mar 2003 12:51:24 -0500


Update of /cvs-repository/Zope3/src/zope/pagetemplate/tests
In directory cvs.zope.org:/tmp/cvs-serv23593/tests

Modified Files:
      Tag: template_usage-branch
	test_basictemplate.py 
Log Message:
add first template_usage tests



=== Zope3/src/zope/pagetemplate/tests/test_basictemplate.py 1.2 => 1.2.8.1 ===
--- Zope3/src/zope/pagetemplate/tests/test_basictemplate.py:1.2	Wed Dec 25 09:15:13 2002
+++ Zope3/src/zope/pagetemplate/tests/test_basictemplate.py	Thu Mar 13 12:50:53 2003
@@ -59,6 +59,22 @@
         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)
+
     def test_batches_and_formatting(self):
         # DTML test 3: batches and formatting:
         pass # for unittest