MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_read_from_stringio

Method test_read_from_stringio

Lib/test/test_xml_etree.py:4337–4341  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

4335 '''<site>\xf8</site>'''.encode("utf-16"))
4336
4337 def test_read_from_stringio(self):
4338 tree = ET.ElementTree()
4339 stream = io.StringIO('''<?xml version="1.0"?><site></site>''')
4340 tree.parse(stream)
4341 self.assertEqual(tree.getroot().tag, 'site')
4342
4343 def test_write_to_stringio(self):
4344 tree = ET.ElementTree(ET.XML('''<site>\xf8</site>'''))

Callers

nothing calls this directly

Calls 3

parseMethod · 0.95
getrootMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected