(self)
| 338 | dom.unlink() |
| 339 | |
| 340 | def testDeleteAttr(self): |
| 341 | dom = Document() |
| 342 | child = dom.appendChild(dom.createElement("abc")) |
| 343 | |
| 344 | self.assertEqual(len(child.attributes), 0) |
| 345 | child.setAttribute("def", "ghi") |
| 346 | self.assertEqual(len(child.attributes), 1) |
| 347 | del child.attributes["def"] |
| 348 | self.assertEqual(len(child.attributes), 0) |
| 349 | dom.unlink() |
| 350 | |
| 351 | def testRemoveAttr(self): |
| 352 | dom = Document() |
nothing calls this directly
no test coverage detected