(self)
| 920 | self.assertEqual(result.getvalue(), xml_test_out) |
| 921 | |
| 922 | def test_expat_binary_file_bytes_name(self): |
| 923 | fname = os.fsencode(TEST_XMLFILE) |
| 924 | parser = create_parser() |
| 925 | result = BytesIO() |
| 926 | xmlgen = XMLGenerator(result) |
| 927 | |
| 928 | parser.setContentHandler(xmlgen) |
| 929 | with open(fname, 'rb') as f: |
| 930 | parser.parse(f) |
| 931 | |
| 932 | self.assertEqual(result.getvalue(), xml_test_out) |
| 933 | |
| 934 | def test_expat_binary_file_int_name(self): |
| 935 | parser = create_parser() |
nothing calls this directly
no test coverage detected