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

Method test_usage_when_not_required

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

Source from the content-addressed store, hash-verified

3465
3466 @force_not_colorized
3467 def test_usage_when_not_required(self):
3468 format_usage = self.get_parser(required=False).format_usage
3469 expected_usage = self.usage_when_not_required
3470 self.assertEqual(format_usage(), textwrap.dedent(expected_usage))
3471
3472 @force_not_colorized
3473 def test_usage_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