MCPcopy Index your code
hub / github.com/python/cpython / testEmptyXMLNSValue

Method testEmptyXMLNSValue

Lib/test/test_minidom.py:1723–1727  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1721
1722
1723 def testEmptyXMLNSValue(self):
1724 doc = parseString("<element xmlns=''>\n"
1725 "<foo/>\n</element>")
1726 doc2 = parseString(doc.toxml())
1727 self.assertEqual(doc2.namespaceURI, xml.dom.EMPTY_NAMESPACE)
1728
1729 def testExceptionOnSpacesInXMLNSValue(self):
1730 with self.assertRaises((ValueError, ExpatError)):

Callers

nothing calls this directly

Calls 3

parseStringFunction · 0.90
toxmlMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected