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

Method test_getstatement

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

getstatementMethod · 0.80

Tested by

no test coverage detected