[Zope-Checkins] CVS: Zope/lib/python/TAL/tests - test_htmltalparser.py:1.32

Fred L. Drake, Jr. fred@zope.com
Fri, 25 Apr 2003 14:06:58 -0400


Update of /cvs-repository/Zope/lib/python/TAL/tests
In directory cvs.zope.org:/tmp/cvs-serv10743/lib/python/TAL/tests

Modified Files:
	test_htmltalparser.py 
Log Message:
Raise TALError when tal:content is used on an HTML tag that must be empty.

=== Zope/lib/python/TAL/tests/test_htmltalparser.py 1.31 => 1.32 ===
--- Zope/lib/python/TAL/tests/test_htmltalparser.py:1.31	Mon Apr  7 13:38:28 2003
+++ Zope/lib/python/TAL/tests/test_htmltalparser.py	Fri Apr 25 14:06:56 2003
@@ -478,6 +478,8 @@
         self._should_error("<p tal:foobar='x' />")
         self._should_error("<p tal:replace='x' tal:content='x' />")
         self._should_error("<p tal:replace='x'>")
+        for tag in HTMLTALParser.EMPTY_HTML_TAGS:
+            self._should_error("<%s tal:content='string:foo'>" % tag)
 
     def check_metal_errors(self):
         exc = METALError