(self)
| 559 | soup.encode(), b'<?xml version="1.0" encoding="utf-8"?>\n<root/>') |
| 560 | |
| 561 | def test_xml_declaration(self): |
| 562 | markup = b"""<?xml version="1.0" encoding="utf8"?>\n<foo/>""" |
| 563 | soup = self.soup(markup) |
| 564 | self.assertEqual(markup, soup.encode("utf8")) |
| 565 | |
| 566 | def test_real_xhtml_document(self): |
| 567 | """A real XHTML document should come out *exactly* the same as it went in.""" |