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

Method test_simple

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

Source from the content-addressed store, hash-verified

1083 self.check(result, expect)
1084
1085 def test_simple(self):
1086 # Simple case: just words, spaces, and a bit of punctuation
1087 text = "Hello there, how are you this fine day? I'm glad to hear it!"
1088
1089 self.check_shorten(text, 18, "Hello there, [...]")
1090 self.check_shorten(text, len(text), text)
1091 self.check_shorten(text, len(text) - 1,
1092 "Hello there, how are you this fine day? "
1093 "I'm glad to [...]")
1094
1095 def test_placeholder(self):
1096 text = "Hello there, how are you this fine day? I'm glad to hear it!"

Callers

nothing calls this directly

Calls 1

check_shortenMethod · 0.95

Tested by

no test coverage detected