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

Method setUp

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

Source from the content-addressed store, hash-verified

642
643class LongWordWithHyphensTestCase(BaseTestCase):
644 def setUp(self):
645 self.wrapper = TextWrapper()
646 self.text1 = '''\
647We used enyzme 2-succinyl-6-hydroxy-2,4-cyclohexadiene-1-carboxylate synthase.
648'''
649 self.text2 = '''\
6501234567890-1234567890--this_is_a_very_long_option_indeed-good-bye"
651'''
652
653 def test_break_long_words_on_hyphen(self):
654 expected = ['We used enyzme 2-succinyl-6-hydroxy-2,4-',

Callers

nothing calls this directly

Calls 1

TextWrapperClass · 0.90

Tested by

no test coverage detected