(self)
| 883 | # ===== XMLReader support |
| 884 | |
| 885 | def test_expat_binary_file(self): |
| 886 | parser = create_parser() |
| 887 | result = BytesIO() |
| 888 | xmlgen = XMLGenerator(result) |
| 889 | |
| 890 | parser.setContentHandler(xmlgen) |
| 891 | with open(TEST_XMLFILE, 'rb') as f: |
| 892 | parser.parse(f) |
| 893 | |
| 894 | self.assertEqual(result.getvalue(), xml_test_out) |
| 895 | |
| 896 | def test_expat_text_file(self): |
| 897 | parser = create_parser() |
nothing calls this directly
no test coverage detected