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

Method test_long_case

testing/test_assertrewrite.py:1277–1285  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

1275 result.stdout.fnmatch_lines(["*E*assert (False == False) == False"])
1276
1277 def test_long_case(self, pytester: Pytester) -> None:
1278 pytester.makepyfile(
1279 """
1280 def test_ternary_display():
1281 assert False == (False == True) == True
1282 """
1283 )
1284 result = pytester.runpytest()
1285 result.stdout.fnmatch_lines(["*E*assert (False == True) == True"])
1286
1287 def test_many_brackets(self, pytester: Pytester) -> None:
1288 pytester.makepyfile(

Callers

nothing calls this directly

Calls 3

fnmatch_linesMethod · 0.80
makepyfileMethod · 0.45
runpytestMethod · 0.45

Tested by

no test coverage detected