(self)
| 4444 | '''<site />'''.encode("utf-16")) |
| 4445 | |
| 4446 | def test_tostringlist_invariant(self): |
| 4447 | root = ET.fromstring('<tag>foo</tag>') |
| 4448 | self.assertEqual( |
| 4449 | ET.tostring(root, 'unicode'), |
| 4450 | ''.join(ET.tostringlist(root, 'unicode'))) |
| 4451 | self.assertEqual( |
| 4452 | ET.tostring(root, 'utf-16'), |
| 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>') |
nothing calls this directly
no test coverage detected