(self, required=None)
| 3491 | class TestMutuallyExclusiveSimple(MEMixin, TestCase): |
| 3492 | |
| 3493 | def get_parser(self, required=None): |
| 3494 | parser = ErrorRaisingArgumentParser(prog='PROG') |
| 3495 | group = parser.add_mutually_exclusive_group(required=required) |
| 3496 | group.add_argument('--bar', help='bar help') |
| 3497 | group.add_argument('--baz', nargs='?', const='Z', help='baz help') |
| 3498 | return parser |
| 3499 | |
| 3500 | failures = ['--bar X --baz Y', '--bar X --baz'] |
| 3501 | successes = [ |
nothing calls this directly
no test coverage detected