1 '''Test module to thest the xmllib module.
6 <?xml version="1.0" encoding="UTF-8" standalone='yes' ?>
7 <!-- comments aren't allowed before the <?xml?> tag,
8 but they are allowed before the <!DOCTYPE> tag -->
9 <?processing instructions are allowed in the same places as comments ?>
11 <!ELEMENT greeting (#PCDATA)>
13 <greeting>Hello, world!</greeting>
17 warnings
.filterwarnings("ignore", ".* xmllib .* obsolete.*",
18 DeprecationWarning, r
'xmllib$')
20 from test
import test_support
24 class XMLParserTestCase(unittest
.TestCase
):
26 def test_simple(self
):
27 parser
= xmllib
.XMLParser()
34 test_support
.run_unittest(XMLParserTestCase
)
36 if __name__
== "__main__":