MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_fmt_newline_escaped

Method test_fmt_newline_escaped

testing/test_assertion.py:1086–1089  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1084 assert util.format_explanation(expl) == res
1085
1086 def test_fmt_newline_escaped(self) -> None:
1087 expl = "\n".join(["assert foo == bar", "baz"])
1088 res = "assert foo == bar\\nbaz"
1089 assert util.format_explanation(expl) == res
1090
1091 def test_fmt_newline_before_where(self) -> None:
1092 expl = "\n".join(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected