(self, parser)
| 2742 | parser.parse_args('1 2'.split())) |
| 2743 | |
| 2744 | def _test_required_subparsers(self, parser): |
| 2745 | # Should parse the sub command |
| 2746 | ret = parser.parse_args(['run']) |
| 2747 | self.assertEqual(ret.command, 'run') |
| 2748 | |
| 2749 | # Error when the command is missing |
| 2750 | self.assertArgumentParserError(parser.parse_args, ()) |
| 2751 | |
| 2752 | def test_required_subparsers_via_attribute(self): |
| 2753 | parser = ErrorRaisingArgumentParser() |
no test coverage detected