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

Method test_binary_op

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

Source from the content-addressed store, hash-verified

689 assert getmsg(f4) == "assert (+0 + 0)"
690
691 def test_binary_op(self) -> None:
692 def f1() -> None:
693 x = 1
694 y = -1
695 assert x + y
696
697 assert getmsg(f1) == "assert (1 + -1)"
698
699 def f2() -> None:
700 assert not 5 % 4
701
702 assert getmsg(f2) == "assert not (5 % 4)"
703
704 def test_boolop_percent(self) -> None:
705 def f1() -> None:

Callers

nothing calls this directly

Calls 1

getmsgFunction · 0.85

Tested by

no test coverage detected