(self)
| 349 | dom.unlink() |
| 350 | |
| 351 | def testRemoveAttr(self): |
| 352 | dom = Document() |
| 353 | child = dom.appendChild(dom.createElement("abc")) |
| 354 | |
| 355 | child.setAttribute("def", "ghi") |
| 356 | self.assertEqual(len(child.attributes), 1) |
| 357 | self.assertRaises(xml.dom.NotFoundErr, child.removeAttribute, "foo") |
| 358 | child.removeAttribute("def") |
| 359 | self.assertEqual(len(child.attributes), 0) |
| 360 | dom.unlink() |
| 361 | |
| 362 | def testRemoveAttrNS(self): |
| 363 | dom = Document() |
nothing calls this directly
no test coverage detected