summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sax.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_sax.py')
-rw-r--r--Lib/test/test_sax.py12
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: