(self)
| 4453 | b''.join(ET.tostringlist(root, 'utf-16'))) |
| 4454 | |
| 4455 | def test_short_empty_elements(self): |
| 4456 | root = ET.fromstring('<tag>a<x />b<y></y>c</tag>') |
| 4457 | self.assertEqual( |
| 4458 | ET.tostring(root, 'unicode'), |
| 4459 | '<tag>a<x />b<y />c</tag>') |
| 4460 | self.assertEqual( |
| 4461 | ET.tostring(root, 'unicode', short_empty_elements=True), |
| 4462 | '<tag>a<x />b<y />c</tag>') |
| 4463 | self.assertEqual( |
| 4464 | ET.tostring(root, 'unicode', short_empty_elements=False), |
| 4465 | '<tag>a<x></x>b<y></y>c</tag>') |
| 4466 | |
| 4467 | |
| 4468 | class ParseErrorTest(unittest.TestCase): |
nothing calls this directly
no test coverage detected