(self)
| 2818 | ''')) |
| 2819 | |
| 2820 | def test_help_extra_prefix_chars(self): |
| 2821 | # Make sure - is still used for help if it is a non-first prefix char |
| 2822 | parser = self._get_parser(prefix_chars='+:-') |
| 2823 | self.assertEqual(parser.format_usage(), |
| 2824 | 'usage: PROG [-h] [++foo] bar {1,2,3} ...\n') |
| 2825 | self.assertEqual(parser.format_help(), textwrap.dedent('''\ |
| 2826 | usage: PROG [-h] [++foo] bar {1,2,3} ... |
| 2827 | |
| 2828 | main description |
| 2829 | |
| 2830 | positional arguments: |
| 2831 | bar bar help |
| 2832 | {1,2,3} command help |
| 2833 | |
| 2834 | options: |
| 2835 | -h, --help show this help message and exit |
| 2836 | ++foo foo help |
| 2837 | ''')) |
| 2838 | |
| 2839 | def test_help_non_breaking_spaces(self): |
| 2840 | parser = ErrorRaisingArgumentParser( |
nothing calls this directly
no test coverage detected