[Zope-CVS] CVS: Packages/HTMLStructure/tests - testValidator.py:1.2

Evan Simpson evan@zope.com
Fri, 1 Feb 2002 14:23:59 -0500


Update of /cvs-repository/Packages/HTMLStructure/tests
In directory cvs.zope.org:/tmp/cvs-serv29282/tests

Modified Files:
	testValidator.py 
Log Message:
Include empty tags in match list.  Put nest_tags() in new Utility module.


=== Packages/HTMLStructure/tests/testValidator.py 1.1 => 1.2 ===
     NoTagMatchData = (
         '', ' \n  ', '&',
-        '<!-- comment -->', '<br>',
-        '<?xml?>', '<!DOCTYPE foo>', '<baz/>'
+        '<!-- comment -->',
+        '<?xml?>', '<!DOCTYPE foo>',
         ) 
 
     def testNoTagMatch(self):
@@ -46,6 +46,8 @@
                             % (name, `matched`, `text`))
 
     AllMatchData = (
+        ('<br>', [(0,0)]),
+        ('<baz />', [(0,0)]),
         ('<b>bold</b>', [(0,1)]),
         ('<i>1 &amp; 2</i>', [(0,2)]),
         ('<p></p><p></p>', [(0,1),(2,3)]),