MCPcopy Index your code
hub / github.com/python/cpython / test_write_to_bytesio

Method test_write_to_bytesio

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

Source from the content-addressed store, hash-verified

4390 self.assertEqual(tree.getroot().tag, 'site')
4391
4392 def test_write_to_bytesio(self):
4393 tree = ET.ElementTree(ET.XML('''<site>\xf8</site>'''))
4394 raw = io.BytesIO()
4395 tree.write(raw)
4396 self.assertEqual(raw.getvalue(), b'''<site>&#248;</site>''')
4397
4398 class dummy:
4399 pass

Callers

nothing calls this directly

Calls 3

writeMethod · 0.95
getvalueMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected