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

Method test_fmt_newline

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

Source from the content-addressed store, hash-verified

1079 assert util.format_explanation(expl) == res
1080
1081 def test_fmt_newline(self) -> None:
1082 expl = "\n".join(['assert "foo" == "bar"', "~- foo", "~+ bar"])
1083 res = "\n".join(['assert "foo" == "bar"', " - foo", " + bar"])
1084 assert util.format_explanation(expl) == res
1085
1086 def test_fmt_newline_escaped(self) -> None:
1087 expl = "\n".join(["assert foo == bar", "baz"])

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected