From 6f15d9569be0f247a00a9d900246124bdeecec87 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Thu, 23 Feb 2012 13:38:46 -0500 Subject: A bit more testing. --- bs4/testing.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'bs4/testing.py') diff --git a/bs4/testing.py b/bs4/testing.py index 55b953f..e6f7f75 100644 --- a/bs4/testing.py +++ b/bs4/testing.py @@ -404,16 +404,19 @@ class HTML5TreeBuilderSmokeTest(HTMLTreeBuilderSmokeTest): self.assertEqual("http://www.w3.org/1999/xhtml", soup.a.namespace) def test_svg_tags_have_namespace(self): - markup = '' + markup = '' soup = self.soup(markup) - self.assertEqual("http://www.w3.org/2000/svg", soup.svg.namespace) + namespace = "http://www.w3.org/2000/svg" + self.assertEqual(namespace, soup.svg.namespace) + self.assertEqual(namespace, soup.circle.namespace) + def test_mathml_tags_have_namespace(self): - markup = '' + markup = '5' soup = self.soup(markup) - self.assertEqual( - 'http://www.w3.org/1998/Math/MathML', soup.math.namespace) - + namespace = 'http://www.w3.org/1998/Math/MathML' + self.assertEqual(namespace, soup.math.namespace) + self.assertEqual(namespace, soup.sqrt.namespace) def skipIf(condition, reason): def nothing(test, *args, **kwargs): -- cgit v1.2.3