]> granicus.if.org Git - python/commitdiff
Add regression test for a bug found in the version of the markupbase
authorFred Drake <fdrake@acm.org>
Wed, 25 Sep 2002 16:29:17 +0000 (16:29 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 25 Sep 2002 16:29:17 +0000 (16:29 +0000)
module used in the Zope TAL implementation.  The bug was already fixed
in the Python standard library, but the regression test would be good
to keep around.

Lib/test/test_sgmllib.py

index f6f13093535d7e637ad17fd2a47205588cb5bb8d..90ed87ee82ea11f239a7f3ca42ae18a15ec0fd72 100644 (file)
@@ -262,6 +262,12 @@ DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN'
             ("data", "def"),
             ])
 
+    def test_enumerated_attr_type(self):
+        s = "<!DOCTYPE doc [<!ATTLIST doc attr (a | b) >]>"
+        self.check_events(s, [
+            ('decl', 'DOCTYPE doc [<!ATTLIST doc attr (a | b) >]'),
+            ])
+
     # XXX These tests have been disabled by prefixing their names with
     # an underscore.  The first two exercise outstanding bugs in the
     # sgmllib module, and the third exhibits questionable behavior