MCPcopy Index your code
hub / github.com/RustPython/RustPython / testAltNewline

Method testAltNewline

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

Source from the content-addressed store, hash-verified

603
604 @unittest.expectedFailure # TODO: RUSTPYTHON
605 def testAltNewline(self):
606 str = '<?xml version="1.0" ?>\n<a b="c"/>\n'
607 dom = parseString(str)
608 domstr = dom.toprettyxml(newl="\r\n")
609 dom.unlink()
610 self.assertEqual(domstr, str.replace("\n", "\r\n"))
611
612 def test_toprettyxml_with_text_nodes(self):
613 # 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