Add regression test for a bug found in the version of the markupbase

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.
This commit is contained in:
Fred Drake 2002-09-25 16:29:17 +00:00
parent 6b3db551be
commit 04d9a80fef
1 changed files with 6 additions and 0 deletions

View File

@ -262,6 +262,12 @@ DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01//EN'
("data", "def"), ("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 # XXX These tests have been disabled by prefixing their names with
# an underscore. The first two exercise outstanding bugs in the # an underscore. The first two exercise outstanding bugs in the
# sgmllib module, and the third exhibits questionable behavior # sgmllib module, and the third exhibits questionable behavior