diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-22 22:45:36 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-02-22 22:45:36 -0500 |
commit | 1c32da9882d056fee65d8c2aa44ecacfc21eb758 (patch) | |
tree | 1a0e636e6f5e40da75a6fca2613e773578c45112 /tests/test_soup.py | |
parent | f42fef27dc82ce97df0cb7b254595e6771461637 (diff) |
Don't turn " into " except in attribute values.
Diffstat (limited to 'tests/test_soup.py')
-rw-r--r-- | tests/test_soup.py | 4 |
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.""" |