(self)
| 495 | return etree.tostring(root, encoding="unicode", short_empty_elements=False) |
| 496 | |
| 497 | def testPreCodeEmpty(self): |
| 498 | xml = "<pre><code></code></pre>" |
| 499 | expected = "<pre><code></code></pre>\n" |
| 500 | self.assertEqual(expected, self.prettify(xml)) |
| 501 | |
| 502 | def testPreCodeWithChildren(self): |
| 503 | xml = "<pre><code> <span /></code></pre>" |