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

Method test_wrap_columns

Lib/test/test_optparse.py:1532–1539  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1530 self.assertHelpEquals(_expected_help_title_formatter)
1531
1532 def test_wrap_columns(self):
1533 # Ensure that wrapping respects $COLUMNS environment variable.
1534 # Need to reconstruct the parser, since that's the only time
1535 # we look at $COLUMNS.
1536 self.parser = self.make_parser(60)
1537 self.assertHelpEquals(_expected_help_short_lines)
1538 self.parser = self.make_parser(0)
1539 self.assertHelpEquals(_expected_very_help_short_lines)
1540
1541 def test_help_unicode(self):
1542 self.parser = InterceptingOptionParser(usage=SUPPRESS_USAGE)

Callers

nothing calls this directly

Calls 2

make_parserMethod · 0.95
assertHelpEqualsMethod · 0.95

Tested by

no test coverage detected