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

Method test_write_to_bytesio

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

Source from the content-addressed store, hash-verified

4353 self.assertEqual(tree.getroot().tag, 'site')
4354
4355 def test_write_to_bytesio(self):
4356 tree = ET.ElementTree(ET.XML('''<site>\xf8</site>'''))
4357 raw = io.BytesIO()
4358 tree.write(raw)
4359 self.assertEqual(raw.getvalue(), b'''<site>&#248;</site>''')
4360
4361 class dummy:
4362 pass

Callers

nothing calls this directly

Calls 3

writeMethod · 0.95
getvalueMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected