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

Method testStringAssign

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

Source from the content-addressed store, hash-verified

206 self.assert_(not s.b.string)
207
208 def testStringAssign(self):
209 s = BeautifulSoup("<b></b>")
210 b = s.b
211 b.string = "foo"
212 string = b.string
213 self.assertEquals(string, "foo")
214 self.assert_(isinstance(string, NavigableString))
215
216class AllText(SoupTest):
217 "Tests the use of 'text' to get all of string content from the tag."

Callers

nothing calls this directly

Calls 1

BeautifulSoupClass · 0.90

Tested by

no test coverage detected