MCPcopy Create free account
hub / github.com/clips/pattern / testText

Method testText

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

Source from the content-addressed store, hash-verified

217 "Tests the use of 'text' to get all of string content from the tag."
218
219 def testText(self):
220 soup = BeautifulSoup("<ul><li>spam</li><li>eggs</li><li>cheese</li>")
221 self.assertEquals(soup.ul.text, "spameggscheese")
222 self.assertEquals(soup.ul.getText('/'), "spam/eggs/cheese")
223
224class ThatsMyLimit(SoupTest):
225 "Tests the limit argument."

Callers

nothing calls this directly

Calls 2

BeautifulSoupClass · 0.90
getTextMethod · 0.80

Tested by

no test coverage detected