[ZPT] CVS: Packages/TAL - test_htmlparser.py:1.11

fred@digicool.com fred@digicool.com
Fri, 6 Apr 2001 15:55:25 -0400 (EDT)


Update of /cvs-repository/Packages/TAL/test
In directory korak:/tmp/cvs-serv17153

Modified Files:
	test_htmlparser.py 
Log Message:

Revise a test that requires "<tag attr=>" to be accepted -- it is not!

Add a check to ensure it raises an HTMLParseError.



--- Updated File test_htmlparser.py in package Packages/TAL --
--- test_htmlparser.py	2001/03/29 00:02:21	1.10
+++ test_htmlparser.py	2001/04/06 19:55:23	1.11
@@ -162,8 +162,8 @@
                                             ("c", "yyy\t\nyyy"),
                                             ("d", "\txyz\n")])
                          ])
-        self._run_check("""<a b='' c="" d=>""", [
-            ("starttag", "a", [("b", ""), ("c", ""), ("d", "")]),
+        self._run_check("""<a b='' c="">""", [
+            ("starttag", "a", [("b", ""), ("c", "")]),
             ])
 
     def check_attr_entity_replacement(self):
@@ -216,6 +216,7 @@
         self._parse_error("<a foo='bar")
         self._parse_error("<a foo='>'")
         self._parse_error("<a foo='>")
+        self._parse_error("<a foo=>")
 
     def check_declaration_junk_chars(self):
         self._parse_error("<!DOCTYPE foo $ >")