MCPcopy
hub / github.com/csev/py4e / test_unicode_attribute_find

Method test_unicode_attribute_find

code3/bs4/tests/test_tree.py:76–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 self.assertEqual(soup.find(string='Räksmörgås'), 'Räksmörgås')
75
76 def test_unicode_attribute_find(self):
77 soup = self.soup('<h1 id="Räksmörgås">here it is</h1>')
78 str(soup)
79 self.assertEqual("here it is", soup.find(id='Räksmörgås').text)
80
81
82 def test_find_everything(self):

Callers

nothing calls this directly

Calls 2

soupMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected