diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2011-05-21 17:29:56 -0400 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2011-05-21 17:29:56 -0400 |
commit | b4b3a1c6f001d99275e1682aa30ea5dc21017bea (patch) | |
tree | 1d553cd79eef0c84d18ce219db7836a261b9d764 | |
parent | 85959841f88fb750b20bea48b4df904286e4fca6 (diff) |
Test that mixed-case tags are folded to lowercase.
-rw-r--r-- | tests/test_lxml.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_lxml.py b/tests/test_lxml.py index 4b3df07..65c8719 100644 --- a/tests/test_lxml.py +++ b/tests/test_lxml.py @@ -535,6 +535,12 @@ class TestLXMLXMLBuilder(SoupTest): self.assertEquals(cdata.__class__.__name__, 'NavigableString') + def test_mixed_case_tags(self): + # Mixed-case tags are folded to lowercase. + self.assertSoupEquals( + "<a><B><Cd><EFG></efg></CD></b></A>", + "<a><b><cd><efg></efg></cd></b></a>") + def test_can_handle_invalid_xml(self): self.assertSoupEquals("<a><b>", "<a><b /></a>") |