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

Method test_usage_when_required

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

Source from the content-addressed store, hash-verified

3471
3472 @force_not_colorized
3473 def test_usage_when_required(self):
3474 format_usage = self.get_parser(required=True).format_usage
3475 expected_usage = self.usage_when_required
3476 self.assertEqual(format_usage(), textwrap.dedent(expected_usage))
3477
3478 @force_not_colorized
3479 def test_help_when_not_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