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

Method test_writestring

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

Source from the content-addressed store, hash-verified

755 self.assertEqual(list(elem), [])
756
757 def test_writestring(self):
758 elem = ET.XML("<html><body>text</body></html>")
759 self.assertEqual(ET.tostring(elem), b'<html><body>text</body></html>')
760 elem = ET.fromstring("<html><body>text</body></html>")
761 self.assertEqual(ET.tostring(elem), b'<html><body>text</body></html>')
762
763 def test_indent(self):
764 elem = ET.XML("<root></root>")

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
fromstringMethod · 0.45

Tested by

no test coverage detected