(self)
| 1184 | # ===== IncrementalParser support |
| 1185 | |
| 1186 | def test_expat_incremental(self): |
| 1187 | result = BytesIO() |
| 1188 | xmlgen = XMLGenerator(result) |
| 1189 | parser = create_parser() |
| 1190 | parser.setContentHandler(xmlgen) |
| 1191 | |
| 1192 | parser.feed("<doc>") |
| 1193 | parser.feed("</doc>") |
| 1194 | parser.close() |
| 1195 | |
| 1196 | self.assertEqual(result.getvalue(), start + b"<doc></doc>") |
| 1197 | |
| 1198 | def test_expat_incremental_reset(self): |
| 1199 | result = BytesIO() |
nothing calls this directly
no test coverage detected