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

Method test_writestring

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

Source from the content-addressed store, hash-verified

727 self.assertEqual(list(elem), [])
728
729 def test_writestring(self):
730 elem = ET.XML("<html><body>text</body></html>")
731 self.assertEqual(ET.tostring(elem), b'<html><body>text</body></html>')
732 elem = ET.fromstring("<html><body>text</body></html>")
733 self.assertEqual(ET.tostring(elem), b'<html><body>text</body></html>')
734
735 def test_indent(self):
736 elem = ET.XML("<root></root>")

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
fromstringMethod · 0.45

Tested by

no test coverage detected