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

Method test_docstring_generated

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

Source from the content-addressed store, hash-verified

554 self.assertEqual(loaded.decode(), tree.decode())
555
556 def test_docstring_generated(self):
557 soup = self.soup("<root/>")
558 self.assertEqual(
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/>"""

Callers

nothing calls this directly

Calls 2

soupMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected