(self)
| 407 | self.assertEqual(weText.nextSibling, f) |
| 408 | |
| 409 | def testReplaceWithChildren(self): |
| 410 | soup = BeautifulStoneSoup( |
| 411 | "<top><replace><child1/><child2/></replace></top>", |
| 412 | selfClosingTags=["child1", "child2"]) |
| 413 | soup.replaceTag.replaceWithChildren() |
| 414 | self.assertEqual(soup.top.contents[0].name, "child1") |
| 415 | self.assertEqual(soup.top.contents[1].name, "child2") |
| 416 | |
| 417 | def testAppend(self): |
| 418 | doc = "<p>Don't leave me <b>here</b>.</p> <p>Don't leave me.</p>" |
nothing calls this directly
no test coverage detected