(self)
| 319 | text.delete('1.0', 'end') |
| 320 | |
| 321 | def test_multiple_lines(self): |
| 322 | text = self.text |
| 323 | # Select 2 long lines. |
| 324 | text.insert('1.0', self.multiline_test_string) |
| 325 | text.tag_add('sel', '2.0', '4.0') |
| 326 | self.formatter('ParameterDoesNothing', limit=70) |
| 327 | result = text.get('2.0', 'insert') |
| 328 | expected = ( |
| 329 | " The second line's length is way over the max width. It goes on and\n" |
| 330 | " on until it is over 100 characters long. Same thing with the third\n" |
| 331 | " line. It is also way over the max width, but FormatParagraph will\n" |
| 332 | " fix it.\n") |
| 333 | self.assertEqual(result, expected) |
| 334 | text.delete('1.0', 'end') |
| 335 | |
| 336 | def test_comment_block(self): |
| 337 | text = self.text |
nothing calls this directly
no test coverage detected