summaryrefslogtreecommitdiff
path: root/tests/test_soup.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_soup.py')
-rw-r--r--tests/test_soup.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_soup.py b/tests/test_soup.py
index eaedd94..5df49bc 100644
--- a/tests/test_soup.py
+++ b/tests/test_soup.py
@@ -80,6 +80,10 @@ class TestEntitySubstitution(unittest.TestCase):
self.sub.substitute_xml("ÁT&T"),
"ÁT&T")
+ def test_quotes_not_html_substituted(self):
+ """There's no need to do this except inside attribute values."""
+ text = 'Bob\'s "bar"'
+ self.assertEquals(self.sub.substitute_html(text), text)
class TestUnicodeDammit(unittest.TestCase):
"""Standalone tests of Unicode, Dammit."""