diff options
Diffstat (limited to 'bs4/testing.py')
-rw-r--r-- | bs4/testing.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/bs4/testing.py b/bs4/testing.py index dc20812..b2ca180 100644 --- a/bs4/testing.py +++ b/bs4/testing.py @@ -358,6 +358,20 @@ class HTMLTreeBuilderSmokeTest(object): # For the rest of the story, see TestSubstitutions in # test_tree.py. +class XMLTreeBuilderSmokeTest(object): + + def test_namespaces_are_preserved(self): + markup = '<root xmlns:a="http://www.example.com/" xmlns:b="http://example.net/"><a:foo>This tag is in the a namespace</a:foo><b:foo>This tag is in the b namespace</b:foo></root>' + soup = self.soup(markup) + root = soup.root + import pdb; pdb.set_trace() + self.assertEquals("http://www.example.com/", root['xmlns:a']) + self.assertEquals("http://www.example.net/", root['xmlns:b']) + + + pass + + def skipIf(condition, reason): def nothing(test, *args, **kwargs): |