diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-23 12:23:12 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-23 12:23:12 -0500 |
commit | fcefebe15290b9ff44934efa73fb07c70ebf5171 (patch) | |
tree | c0b3ae8837a96975e1b88f3e2e9befc07a72e70c /bs4/tests/test_soup.py | |
parent | b7749c50a2c96ccf6982cfa1ca02d883e31e0af9 (diff) |
Fixed handling of the closing of namespaced tags.
Diffstat (limited to 'bs4/tests/test_soup.py')
-rw-r--r-- | bs4/tests/test_soup.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bs4/tests/test_soup.py b/bs4/tests/test_soup.py index 8333ad4..33ab0fa 100644 --- a/bs4/tests/test_soup.py +++ b/bs4/tests/test_soup.py @@ -240,6 +240,10 @@ class TestUnicodeDammit(unittest.TestCase): class TestNamedspacedAttribute(SoupTest): + def test_name_may_be_none(self): + a = NamespacedAttribute("xmlns", None) + self.assertEqual(a, "xmlns") + def test_attribute_is_equivalent_to_colon_separated_string(self): a = NamespacedAttribute("a", "b") self.assertEqual("a:b", a) |