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

Method test_elif

testing/code/test_source.py:593–595  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

591 assert str(source) == "elif False:"
592
593 def test_elif(self) -> None:
594 source = getstatement(3, self.source)
595 assert str(source) == " y = 5"
596
597 def test_else(self) -> None:
598 source = getstatement(5, self.source)

Callers

nothing calls this directly

Calls 1

getstatementFunction · 0.85

Tested by

no test coverage detected