]> granicus.if.org Git - python/commitdiff
Added a test case for the saxutils.prepare_input_source setSystemId bug.
authorLars Gustäbel <lars@gustaebel.de>
Tue, 24 Oct 2000 16:00:22 +0000 (16:00 +0000)
committerLars Gustäbel <lars@gustaebel.de>
Tue, 24 Oct 2000 16:00:22 +0000 (16:00 +0000)
Lib/test/output/test_sax
Lib/test/test_sax.py

index 062a456d0c488cd74d9cb063c21e9c210e3bbbaa..de49c805618c042126a58b37093877daa5d0a92f 100644 (file)
@@ -8,6 +8,7 @@ Passed test_expat_attrs_empty
 Passed test_expat_attrs_wattr
 Passed test_expat_dtdhandler
 Passed test_expat_entityresolver
+Passed test_expat_file
 Passed test_expat_incomplete
 Passed test_expat_incremental
 Passed test_expat_incremental_reset
@@ -30,4 +31,4 @@ Passed test_xmlgen_content_escape
 Passed test_xmlgen_ignorable
 Passed test_xmlgen_ns
 Passed test_xmlgen_pi
-31 tests, 0 failures
+32 tests, 0 failures
index 59e14c5ef3785fc77b3a34c6687fde387e1ac05d..b4c840b622cdd838fe7277a4e1fb8c93c122eb02 100644 (file)
@@ -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: