(self)
| 471 | return etree.tostring(root, encoding="unicode", short_empty_elements=False) |
| 472 | |
| 473 | def testPreCodeEmpty(self): |
| 474 | xml = "<pre><code></code></pre>" |
| 475 | expected = "<pre><code></code></pre>\n" |
| 476 | self.assertEqual(expected, self.prettify(xml)) |
| 477 | |
| 478 | def testPreCodeWithChildren(self): |
| 479 | xml = "<pre><code> <span /></code></pre>" |