(self)
| 1769 | '<curriculum status="public" company="example"/>\n') |
| 1770 | |
| 1771 | def test_toprettyxml_with_cdata(self): |
| 1772 | xml_str = '<?xml version="1.0" ?><root><node><![CDATA[</data>]]></node></root>' |
| 1773 | doc = parseString(xml_str) |
| 1774 | self.assertEqual(doc.toprettyxml(), |
| 1775 | '<?xml version="1.0" ?>\n' |
| 1776 | '<root>\n' |
| 1777 | '\t<node><![CDATA[</data>]]></node>\n' |
| 1778 | '</root>\n') |
| 1779 | |
| 1780 | def test_cdata_parsing(self): |
| 1781 | xml_str = '<?xml version="1.0" ?><root><node><![CDATA[</data>]]></node></root>' |
nothing calls this directly
no test coverage detected