(self)
| 2949 | """Tests that order of group positionals matches construction order""" |
| 2950 | |
| 2951 | def test_nongroup_first(self): |
| 2952 | parser = ErrorRaisingArgumentParser() |
| 2953 | parser.add_argument('foo') |
| 2954 | group = parser.add_argument_group('g') |
| 2955 | group.add_argument('bar') |
| 2956 | parser.add_argument('baz') |
| 2957 | expected = NS(foo='1', bar='2', baz='3') |
| 2958 | result = parser.parse_args('1 2 3'.split()) |
| 2959 | self.assertEqual(expected, result) |
| 2960 | |
| 2961 | def test_group_first(self): |
| 2962 | parser = ErrorRaisingArgumentParser() |
nothing calls this directly
no test coverage detected