diff options
author | Lars Gustäbel <lars@gustaebel.de> | 2000-10-24 16:00:22 (GMT) |
---|---|---|
committer | Lars Gustäbel <lars@gustaebel.de> | 2000-10-24 16:00:22 (GMT) |
commit | 0702507ea2e6a6a2c36430cc4ec6c824373672c7 (patch) | |
tree | df9d4de9acca9fb72185a5efe58d1eac73f17c4e /Lib/test/test_sax.py | |
parent | 4ced5e7675ac8664be82c7dc0e213201871a0983 (diff) | |
download | cpython-0702507ea2e6a6a2c36430cc4ec6c824373672c7.zip cpython-0702507ea2e6a6a2c36430cc4ec6c824373672c7.tar.gz cpython-0702507ea2e6a6a2c36430cc4ec6c824373672c7.tar.bz2 |
Added a test case for the saxutils.prepare_input_source setSystemId bug.
Diffstat (limited to 'Lib/test/test_sax.py')
-rw-r--r-- | Lib/test/test_sax.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Lib/test/test_sax.py b/Lib/test/test_sax.py index 59e14c5..b4c840b 100644 --- a/Lib/test/test_sax.py +++ b/Lib/test/test_sax.py @@ -185,6 +185,18 @@ def test_filter_basic(): # # =========================================================================== +# ===== XMLReader support + +def test_expat_file(): + parser = create_parser() + result = StringIO() + xmlgen = XMLGenerator(result) + + parser.setContentHandler(xmlgen) + parser.parse(open(findfile("test.xml"))) + + return result.getvalue() == xml_test_out + # ===== DTDHandler support class TestDTDHandler: |