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

Method check

Lib/test/test_textwrap.py:30–33  ·  view source on GitHub ↗
(self, result, expect)

Source from the content-addressed store, hash-verified

28
29
30 def check(self, result, expect):
31 self.assertEqual(result, expect,
32 'expected:\n%s\nbut got:\n%s' % (
33 self.show(expect), self.show(result)))
34
35 def check_wrap(self, text, width, expect, **kwargs):
36 result = wrap(text, width, **kwargs)

Callers 9

check_wrapMethod · 0.95
test_whitespaceMethod · 0.45
test_splitMethod · 0.45
test_nobreak_longMethod · 0.45
test_fillMethod · 0.45
test_initial_indentMethod · 0.45
check_shortenMethod · 0.45

Calls 2

showMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected