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

Method testString

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

Source from the content-addressed store, hash-verified

198 "Tests the use of 'string' as an alias for a tag's only content."
199
200 def testString(self):
201 s = BeautifulSoup("<b>foo</b>")
202 self.assertEquals(s.b.string, 'foo')
203
204 def testLackOfString(self):
205 s = BeautifulSoup("<b>f<i>e</i>o</b>")

Callers

nothing calls this directly

Calls 1

BeautifulSoupClass · 0.90

Tested by

no test coverage detected