[Zope3-checkins] CVS: Zope3/src/zope/tal/tests - test_htmltalparser.py:1.5

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


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

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

=== Zope3/src/zope/tal/tests/test_htmltalparser.py 1.4 => 1.5 ===
--- Zope3/src/zope/tal/tests/test_htmltalparser.py:1.4	Fri Apr  4 11:05:44 2003
+++ Zope3/src/zope/tal/tests/test_htmltalparser.py	Fri Apr 25 14:07:22 2003
@@ -469,6 +469,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 test_metal_errors(self):
         exc = taldefs.METALError