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

Method test_write_to_stringio

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

Source from the content-addressed store, hash-verified

4341 self.assertEqual(tree.getroot().tag, 'site')
4342
4343 def test_write_to_stringio(self):
4344 tree = ET.ElementTree(ET.XML('''<site>\xf8</site>'''))
4345 stream = io.StringIO()
4346 tree.write(stream, encoding='unicode')
4347 self.assertEqual(stream.getvalue(), '''<site>\xf8</site>''')
4348
4349 def test_read_from_bytesio(self):
4350 tree = ET.ElementTree()

Callers

nothing calls this directly

Calls 3

writeMethod · 0.95
getvalueMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected