MCPcopy Index your code
hub / github.com/csev/py4e / test_xml_declaration

Method test_xml_declaration

code3/bs4/testing.py:561–564  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

soupMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected