MCPcopy Create free account
hub / github.com/python/cpython / checklines

Method checklines

Lib/idlelib/idle_test/test_zzdummy.py:74–83  ·  view source on GitHub ↗
(self, text, value)

Source from the content-addressed store, hash-verified

72 del self.zz
73
74 def checklines(self, text, value):
75 # Verify that there are lines being checked.
76 end_line = int(float(text.index('end')))
77
78 # Check each line for the starting text.
79 actual = []
80 for line in range(1, end_line):
81 txt = text.get(f'{line}.0', f'{line}.end')
82 actual.append(txt.startswith(value))
83 return actual
84
85 def test_init(self):
86 zz = self.zz

Callers 2

test_z_in_eventMethod · 0.95
test_z_out_eventMethod · 0.95

Calls 4

indexMethod · 0.45
getMethod · 0.45
appendMethod · 0.45
startswithMethod · 0.45

Tested by

no test coverage detected