(self, inserttext, stopline, expected)
| 56 | cls.text = Text() |
| 57 | |
| 58 | def runcase(self, inserttext, stopline, expected): |
| 59 | # Check that find_paragraph returns the expected paragraph when |
| 60 | # the mark index is set to beginning, middle, end of each line |
| 61 | # up to but not including the stop line |
| 62 | text = self.text |
| 63 | text.insert('1.0', inserttext) |
| 64 | for line in range(1, stopline): |
| 65 | linelength = int(text.index("%d.end" % line).split('.')[1]) |
| 66 | for col in (0, linelength//2, linelength): |
| 67 | tempindex = "%d.%d" % (line, col) |
| 68 | self.assertEqual(ft.find_paragraph(text, tempindex), expected) |
| 69 | text.delete('1.0', 'end') |
| 70 | |
| 71 | def test_find_comment(self): |
| 72 | comment = ( |
no test coverage detected