MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_successes_when_required

Method test_successes_when_required

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

Source from the content-addressed store, hash-verified

3346 self.assertEqual(actual_ns, expected_ns)
3347
3348 def test_successes_when_required(self):
3349 parse_args = self.get_parser(required=True).parse_args
3350 for args_string, expected_ns in self.successes:
3351 with self.subTest(args=args_string):
3352 actual_ns = parse_args(args_string.split())
3353 self.assertEqual(actual_ns, expected_ns)
3354
3355 @force_not_colorized
3356 def test_usage_when_not_required(self):

Callers

nothing calls this directly

Calls 5

subTestMethod · 0.80
parse_argsFunction · 0.50
get_parserMethod · 0.45
splitMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected