MCPcopy Index your code
hub / github.com/clips/pattern / testClear

Method testClear

pattern/web/soup/BeautifulSoupTests.py:478–481  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

476 self.assertEqual(three.previousSibling, soup.a)
477
478 def testClear(self):
479 soup = BeautifulSoup("<ul><li></li><li></li></ul>")
480 soup.ul.clear()
481 self.assertEqual(len(soup.ul.contents), 0)
482
483class TheManWithoutAttributes(SoupTest):
484 "Test attribute access"

Callers

nothing calls this directly

Calls 3

BeautifulSoupClass · 0.90
lenFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected