[Zope3-checkins] CVS: Zope3/src/zope/app/pagetemplate/tests - test_binding.py:1.6

Steve Alexander steve@cat-box.net
Tue, 1 Jul 2003 13:31:33 -0400


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

Modified Files:
	test_binding.py 
Log Message:
Increased test coverage of the zope-specific tales engine.
Fixed bug where a different 'default' marker object was used in
zope.app.pagetemplate than in zope.tales
Added documentation of the required semantics of evaluateText to
the ITALExpressionEngine interface.



=== Zope3/src/zope/app/pagetemplate/tests/test_binding.py 1.5 => 1.6 ===
--- Zope3/src/zope/app/pagetemplate/tests/test_binding.py:1.5	Thu May  1 15:35:26 2003
+++ Zope3/src/zope/app/pagetemplate/tests/test_binding.py	Tue Jul  1 13:30:59 2003
@@ -35,6 +35,8 @@
     def test_binding(self):
         comp = PTComponent(Content())
         self.assertEqual(comp.index(), "42\n")
+        self.assertEqual(comp.nothing(), "\n")
+        self.assertEqual(comp.default(), "<span>42</span>\n")
 
 def test_suite():
     return unittest.makeSuite(BindingTestCase)