From bb9d9c5dc0af0deefc1a77542c007b7040aa55bb Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Thu, 10 Feb 2011 11:52:30 -0500 Subject: Ported some more tests demonstrating that entities are converted to Unicode characters on the way in. --- tests/test_tree.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_tree.py') diff --git a/tests/test_tree.py b/tests/test_tree.py index ed29d76..367489e 100644 --- a/tests/test_tree.py +++ b/tests/test_tree.py @@ -818,7 +818,7 @@ class TestPersistence(SoupTest): class TestEncoding(SoupTest): - """Test the ability to encode strings.""" + """Test the ability to encode objects into strings.""" def test_unicode_string_can_be_encoded(self): html = u"\N{SNOWMAN}" @@ -829,5 +829,5 @@ class TestEncoding(SoupTest): def test_tag_containing_unicode_string_can_be_encoded(self): html = u"\N{SNOWMAN}" soup = self.soup(html) - self.assertEquals(soup.b.encode("utf-8"), - html.encode("utf-8")) + self.assertEquals( + soup.b.encode("utf-8"), html.encode("utf-8")) -- cgit v1.2.3