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

Method test_help_when_not_required

Lib/test/test_argparse.py:3479–3482  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3477
3478 @force_not_colorized
3479 def test_help_when_not_required(self):
3480 format_help = self.get_parser(required=False).format_help
3481 help = self.usage_when_not_required + self.help
3482 self.assertEqual(format_help(), textwrap.dedent(help))
3483
3484 @force_not_colorized
3485 def test_help_when_required(self):

Callers

nothing calls this directly

Calls 3

get_parserMethod · 0.45
assertEqualMethod · 0.45
dedentMethod · 0.45

Tested by

no test coverage detected