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

Method test_nobreak_long

Lib/test/test_textwrap.py:618–632  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

616 'anyways?'])
617
618 def test_nobreak_long(self):
619 # Test with break_long_words disabled
620 self.wrapper.break_long_words = 0
621 self.wrapper.width = 30
622 expect = ['Did you say',
623 '"supercalifragilisticexpialidocious?"',
624 'How *do* you spell that odd',
625 'word, anyways?'
626 ]
627 result = self.wrapper.wrap(self.text)
628 self.check(result, expect)
629
630 # Same thing with kwargs passed to standalone wrap() function.
631 result = wrap(self.text, width=30, break_long_words=0)
632 self.check(result, expect)
633
634 def test_max_lines_long(self):
635 self.check_wrap(self.text, 12,

Callers

nothing calls this directly

Calls 3

wrapFunction · 0.90
wrapMethod · 0.45
checkMethod · 0.45

Tested by

no test coverage detected