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

Method test_getstatement

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

Source from the content-addressed store, hash-verified

121 ).strip()
122
123 def test_getstatement(self) -> None:
124 # print str(self.source)
125 ass = str(self.source[1:])
126 for i in range(1, 4):
127 # print "trying start in line %r" % self.source[i]
128 s = self.source.getstatement(i)
129 # x = s.deindent()
130 assert str(s) == ass
131
132 def test_getstatementrange_triple_quoted(self) -> None:
133 # print str(self.source)

Callers

nothing calls this directly

Calls 1

getstatementMethod · 0.80

Tested by

no test coverage detected