diff options
-rw-r--r-- | bs4/testing.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bs4/testing.py b/bs4/testing.py index b82a640..49f50a5 100644 --- a/bs4/testing.py +++ b/bs4/testing.py @@ -227,10 +227,9 @@ class HTMLTreeBuilderSmokeTest(object): def test_entities_converted_on_the_way_out(self): text = "<p><<sacré bleu!>></p>" - expected = u"<<sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>>".encode("utf-8") + expected = u"<p><<sacr\N{LATIN SMALL LETTER E WITH ACUTE} bleu!>></p>".encode("utf-8") soup = self.soup(text) - str = soup.p.string - self.assertEqual(str.encode("utf-8"), expected) + self.assertEqual(soup.p.encode("utf-8"), expected) def test_real_iso_latin_document(self): # Smoke test of interrelated functionality, using an |