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

Method test_help_when_required

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

Source from the content-addressed store, hash-verified

3483
3484 @force_not_colorized
3485 def test_help_when_required(self):
3486 format_help = self.get_parser(required=True).format_help
3487 help = self.usage_when_required + self.help
3488 self.assertEqual(format_help(), textwrap.dedent(help))
3489
3490
3491class TestMutuallyExclusiveSimple(MEMixin, TestCase):

Callers

nothing calls this directly

Calls 3

get_parserMethod · 0.45
assertEqualMethod · 0.45
dedentMethod · 0.45

Tested by

no test coverage detected