summaryrefslogtreecommitdiff
path: root/tests/test_tree.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonard.richardson@canonical.com>2011-02-10 11:52:30 -0500
committerLeonard Richardson <leonard.richardson@canonical.com>2011-02-10 11:52:30 -0500
commitbb9d9c5dc0af0deefc1a77542c007b7040aa55bb (patch)
tree1873ec97e3684c4676d1c62177b60e42aa4f1f2b /tests/test_tree.py
parent749f01e2b664dcbf4f58dfbdcaa4d314f6e3b9ef (diff)
Ported some more tests demonstrating that entities are converted to Unicode characters on the way in.
Diffstat (limited to 'tests/test_tree.py')
-rw-r--r--tests/test_tree.py6
1 files changed, 3 insertions, 3 deletions
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"<b>\N{SNOWMAN}</b>"
@@ -829,5 +829,5 @@ class TestEncoding(SoupTest):
def test_tag_containing_unicode_string_can_be_encoded(self):
html = u"<b>\N{SNOWMAN}</b>"
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"))