(self)
| 3093 | |
| 3094 | class TestGroupConstructor(TestCase): |
| 3095 | def test_group_prefix_chars(self): |
| 3096 | parser = ErrorRaisingArgumentParser() |
| 3097 | msg = ( |
| 3098 | "The use of the undocumented 'prefix_chars' parameter in " |
| 3099 | "ArgumentParser.add_argument_group() is deprecated." |
| 3100 | ) |
| 3101 | with self.assertWarns(DeprecationWarning) as cm: |
| 3102 | parser.add_argument_group(prefix_chars='-+') |
| 3103 | self.assertEqual(msg, str(cm.warning)) |
| 3104 | self.assertEqual(cm.filename, __file__) |
| 3105 | |
| 3106 | def test_group_prefix_chars_default(self): |
| 3107 | # "default" isn't quite the right word here, but it's the same as |
nothing calls this directly
no test coverage detected