(self)
| 395 | self.assertEqual(e.get('tag'), 'bar') |
| 396 | |
| 397 | def test_cdata(self): |
| 398 | # Test CDATA handling (etc). |
| 399 | |
| 400 | self.serialize_check(ET.XML("<tag>hello</tag>"), |
| 401 | '<tag>hello</tag>') |
| 402 | self.serialize_check(ET.XML("<tag>hello</tag>"), |
| 403 | '<tag>hello</tag>') |
| 404 | self.serialize_check(ET.XML("<tag><![CDATA[hello]]></tag>"), |
| 405 | '<tag>hello</tag>') |
| 406 | |
| 407 | def test_file_init(self): |
| 408 | stringfile = io.BytesIO(SAMPLE_XML.encode("utf-8")) |
nothing calls this directly
no test coverage detected