(self)
| 1755 | ) |
| 1756 | |
| 1757 | def testDocRemoveChild(self): |
| 1758 | doc = parse(tstfile) |
| 1759 | title_tag = doc.documentElement.getElementsByTagName("TITLE")[0] |
| 1760 | self.assertRaises( xml.dom.NotFoundErr, doc.removeChild, title_tag) |
| 1761 | num_children_before = len(doc.childNodes) |
| 1762 | doc.removeChild(doc.childNodes[0]) |
| 1763 | num_children_after = len(doc.childNodes) |
| 1764 | self.assertEqual(num_children_after, num_children_before - 1) |
| 1765 | |
| 1766 | def testProcessingInstructionNameError(self): |
| 1767 | # wrong variable in .nodeValue property will |
nothing calls this directly
no test coverage detected