'Parsers don\'t need to *understand* namespaces, but at the
very least they should not choke on namespaces or lose
data.'

def test_basic_namespaces(self):

    markup = '<html    xmlns="http://www.w3.org/1999/xhtml"    xmlns:mathml="http://www.w3.org/1998/Math/MathML"    xmlns:svg="http://www.w3.org/2000/svg"><head></head><body><mathml:msqrt>4</mathml:msqrt><b    svg:fill="red"></b></body></html>'
    soup = self.soup(markup)
    self.assertEqual(markup, soup.encode())
    html = soup.html
    self.assertEqual('http://www.w3.org/1999/xhtml', soup.html['xmlns'])
    self.assertEqual('http://www.w3.org/1998/Math/MathML', soup.html['xmlns:mathml'])
    self.assertEqual('http://www.w3.org/2000/svg', soup.html['xmlns:svg'])
