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

Method check_split

Lib/test/test_textwrap.py:39–43  ·  view source on GitHub ↗
(self, text, expect)

Source from the content-addressed store, hash-verified

37 self.check(result, expect)
38
39 def check_split(self, text, expect):
40 result = self.wrapper._split(text)
41 self.assertEqual(result, expect,
42 "\nexpected %r\n"
43 "but got %r" % (expect, result))
44
45
46class WrapTestCase(BaseTestCase):

Callers 6

test_hyphenatedMethod · 0.80
test_em_dashMethod · 0.80
test_unix_optionsMethod · 0.80
test_funky_hyphensMethod · 0.80
test_punct_hyphensMethod · 0.80
test_funky_parensMethod · 0.80

Calls 2

_splitMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected