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

Method test_funky_parens

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

Source from the content-addressed store, hash-verified

343 "what-d'you-|call-|it.".split('|'))
344
345 def test_funky_parens (self):
346 # Second part of SF bug #596434: long option strings inside
347 # parentheses.
348 self.check_split("foo (--option) bar",
349 ["foo", " ", "(--option)", " ", "bar"])
350
351 # Related stuff -- make sure parens work in simpler contexts.
352 self.check_split("foo (bar) baz",
353 ["foo", " ", "(bar)", " ", "baz"])
354 self.check_split("blah (ding dong), wubba",
355 ["blah", " ", "(ding", " ", "dong),",
356 " ", "wubba"])
357
358 def test_drop_whitespace_false(self):
359 # Check that drop_whitespace=False preserves whitespace.

Callers

nothing calls this directly

Calls 1

check_splitMethod · 0.80

Tested by

no test coverage detected