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

Method test_xinclude_default

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

Source from the content-addressed store, hash-verified

2066 return None
2067
2068 def test_xinclude_default(self):
2069 from xml.etree import ElementInclude
2070 doc = self.xinclude_loader('default.xml')
2071 ElementInclude.include(doc, self._my_loader)
2072 self.assertEqual(serialize(doc),
2073 '<document>\n'
2074 ' <p>Example.</p>\n'
2075 ' <root>\n'
2076 ' <element key="value">text</element>\n'
2077 ' <element>text</element>tail\n'
2078 ' <empty-element />\n'
2079 '</root>\n'
2080 '</document>')
2081
2082 def test_xinclude(self):
2083 from xml.etree import ElementInclude

Callers

nothing calls this directly

Calls 3

xinclude_loaderMethod · 0.95
serializeFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected