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

Method testAltNewline

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

Source from the content-addressed store, hash-verified

600 'ws="	

 "/>')
601
602 def testAltNewline(self):
603 str = '<?xml version="1.0" ?>\n<a b="c"/>\n'
604 dom = parseString(str)
605 domstr = dom.toprettyxml(newl="\r\n")
606 dom.unlink()
607 self.assertEqual(domstr, str.replace("\n", "\r\n"))
608
609 def test_toprettyxml_with_text_nodes(self):
610 # see issue #4147, text nodes are not indented

Callers

nothing calls this directly

Calls 5

parseStringFunction · 0.90
toprettyxmlMethod · 0.80
unlinkMethod · 0.45
assertEqualMethod · 0.45
replaceMethod · 0.45

Tested by

no test coverage detected