MCPcopy
hub / github.com/pytest-dev/pytest / test_node_repr

Method test_node_repr

testing/test_junitxml.py:197–201  ·  view source on GitHub ↗
(self, document: DomDocument)

Source from the content-addressed store, hash-verified

195 document.get_first_by_tag("missing")
196
197 def test_node_repr(self, document: DomDocument) -> None:
198 item = document.get_first_by_tag("item")
199
200 assert repr(item) == item.toxml()
201 assert item.toxml() == '<item name="a"/>'
202
203
204parametrize_families = pytest.mark.parametrize("xunit_family", ["xunit1", "xunit2"])

Callers

nothing calls this directly

Calls 2

get_first_by_tagMethod · 0.80
toxmlMethod · 0.80

Tested by

no test coverage detected