(self)
| 4274 | "<tag key=\"åöö<>\" />" % enc).encode(enc)) |
| 4275 | |
| 4276 | def test_write_to_filename(self): |
| 4277 | self.addCleanup(os_helper.unlink, TESTFN) |
| 4278 | tree = ET.ElementTree(ET.XML('''<site>\xf8</site>''')) |
| 4279 | tree.write(TESTFN) |
| 4280 | with open(TESTFN, 'rb') as f: |
| 4281 | self.assertEqual(f.read(), b'''<site>ø</site>''') |
| 4282 | |
| 4283 | def test_write_to_filename_with_encoding(self): |
| 4284 | self.addCleanup(os_helper.unlink, TESTFN) |
nothing calls this directly
no test coverage detected