(self)
| 2682 | ) |
| 2683 | |
| 2684 | def test_optional_subparsers(self): |
| 2685 | parser = ErrorRaisingArgumentParser() |
| 2686 | subparsers = parser.add_subparsers(dest='command', required=False) |
| 2687 | subparsers.add_parser('run') |
| 2688 | # No error here |
| 2689 | ret = parser.parse_args(()) |
| 2690 | self.assertIsNone(ret.command) |
| 2691 | |
| 2692 | def test_help(self): |
| 2693 | self.assertEqual(self.parser.format_usage(), |
nothing calls this directly
no test coverage detected