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

Method testProcessingInstructionNameError

Lib/test/test_minidom.py:1745–1750  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1743 self.assertEqual(num_children_after, num_children_before - 1)
1744
1745 def testProcessingInstructionNameError(self):
1746 # wrong variable in .nodeValue property will
1747 # lead to "NameError: name 'data' is not defined"
1748 doc = parse(tstfile)
1749 pi = doc.createProcessingInstruction("y", "z")
1750 pi.nodeValue = "crash"
1751
1752 def test_minidom_attribute_order(self):
1753 xml_str = '<?xml version="1.0" ?><curriculum status="public" company="example"/>'

Callers

nothing calls this directly

Calls 2

parseFunction · 0.90

Tested by

no test coverage detected