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

Method test_tostringlist_invariant

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

Source from the content-addressed store, hash-verified

4407 '''<site />'''.encode("utf-16"))
4408
4409 def test_tostringlist_invariant(self):
4410 root = ET.fromstring('<tag>foo</tag>')
4411 self.assertEqual(
4412 ET.tostring(root, 'unicode'),
4413 ''.join(ET.tostringlist(root, 'unicode')))
4414 self.assertEqual(
4415 ET.tostring(root, 'utf-16'),
4416 b''.join(ET.tostringlist(root, 'utf-16')))
4417
4418 def test_short_empty_elements(self):
4419 root = ET.fromstring('<tag>a<x />b<y></y>c</tag>')

Callers

nothing calls this directly

Calls 3

fromstringMethod · 0.45
assertEqualMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected