(self)
| 4237 | "<tag key=\"åöö<>\" />" % enc).encode(enc)) |
| 4238 | |
| 4239 | def test_write_to_filename(self): |
| 4240 | self.addCleanup(os_helper.unlink, TESTFN) |
| 4241 | tree = ET.ElementTree(ET.XML('''<site>\xf8</site>''')) |
| 4242 | tree.write(TESTFN) |
| 4243 | with open(TESTFN, 'rb') as f: |
| 4244 | self.assertEqual(f.read(), b'''<site>ø</site>''') |
| 4245 | |
| 4246 | def test_write_to_filename_with_encoding(self): |
| 4247 | self.addCleanup(os_helper.unlink, TESTFN) |
nothing calls this directly
no test coverage detected