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

Method test_help_title_formatter

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

Source from the content-addressed store, hash-verified

1524 self.assertHelpEquals(_expected_help_long_opts_first)
1525
1526 def test_help_title_formatter(self):
1527 with os_helper.EnvironmentVarGuard() as env:
1528 env["COLUMNS"] = "80"
1529 self.parser.formatter = TitledHelpFormatter()
1530 self.assertHelpEquals(_expected_help_title_formatter)
1531
1532 def test_wrap_columns(self):
1533 # Ensure that wrapping respects $COLUMNS environment variable.

Callers

nothing calls this directly

Calls 2

assertHelpEqualsMethod · 0.95
TitledHelpFormatterClass · 0.90

Tested by

no test coverage detected