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

Method test_binary_op

testing/test_assertrewrite.py:480–491  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

478 assert getmsg(f4) == "assert (+0 + 0)"
479
480 def test_binary_op(self) -> None:
481 def f1() -> None:
482 x = 1
483 y = -1
484 assert x + y
485
486 assert getmsg(f1) == "assert (1 + -1)"
487
488 def f2() -> None:
489 assert not 5 % 4
490
491 assert getmsg(f2) == "assert not (5 % 4)"
492
493 def test_boolop_percent(self) -> None:
494 def f1() -> None:

Callers

nothing calls this directly

Calls 1

getmsgFunction · 0.85

Tested by

no test coverage detected