(self)
| 583 | '<ws>\t\n\r </ws></elem>') |
| 584 | |
| 585 | def test_toxml_quote_attrib(self): |
| 586 | dom = Document() |
| 587 | elem = dom.appendChild(dom.createElement('elem')) |
| 588 | elem.setAttribute("a", '&<>"') |
| 589 | elem.setAttribute("cr", "\r") |
| 590 | elem.setAttribute("lf", "\n") |
| 591 | elem.setAttribute("crlf", "\r\n") |
| 592 | elem.setAttribute("lflf", "\n\n") |
| 593 | elem.setAttribute("ws", "\t\n\r ") |
| 594 | domstr = dom.toxml() |
| 595 | dom.unlink() |
| 596 | self.assertEqual(domstr, '<?xml version="1.0" ?>' |
| 597 | '<elem a="&<>"" ' |
| 598 | 'cr=" " ' |
| 599 | 'lf=" " ' |
| 600 | 'crlf=" " ' |
| 601 | 'lflf=" " ' |
| 602 | 'ws="	 "/>') |
| 603 | |
| 604 | @unittest.expectedFailure # TODO: RUSTPYTHON |
| 605 | def testAltNewline(self): |
nothing calls this directly
no test coverage detected