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

Method test_read_from_user_text_reader

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

Source from the content-addressed store, hash-verified

4399 pass
4400
4401 def test_read_from_user_text_reader(self):
4402 stream = io.StringIO('''<?xml version="1.0"?><site></site>''')
4403 reader = self.dummy()
4404 reader.read = stream.read
4405 tree = ET.ElementTree()
4406 tree.parse(reader)
4407 self.assertEqual(tree.getroot().tag, 'site')
4408
4409 def test_write_to_user_text_writer(self):
4410 tree = ET.ElementTree(ET.XML('''<site>\xf8</site>'''))

Callers

nothing calls this directly

Calls 4

parseMethod · 0.95
getrootMethod · 0.95
dummyMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected