(self)
| 4416 | b''.join(ET.tostringlist(root, 'utf-16'))) |
| 4417 | |
| 4418 | def test_short_empty_elements(self): |
| 4419 | root = ET.fromstring('<tag>a<x />b<y></y>c</tag>') |
| 4420 | self.assertEqual( |
| 4421 | ET.tostring(root, 'unicode'), |
| 4422 | '<tag>a<x />b<y />c</tag>') |
| 4423 | self.assertEqual( |
| 4424 | ET.tostring(root, 'unicode', short_empty_elements=True), |
| 4425 | '<tag>a<x />b<y />c</tag>') |
| 4426 | self.assertEqual( |
| 4427 | ET.tostring(root, 'unicode', short_empty_elements=False), |
| 4428 | '<tag>a<x></x>b<y></y>c</tag>') |
| 4429 | |
| 4430 | |
| 4431 | class ParseErrorTest(unittest.TestCase): |
nothing calls this directly
no test coverage detected