MCPcopy Index your code
hub / github.com/python/cpython / test_multiple_lines

Method test_multiple_lines

Lib/idlelib/idle_test/test_format.py:321–334  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

tag_addMethod · 0.80
insertMethod · 0.45
getMethod · 0.45
assertEqualMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected