(self)
| 1106 | BLUE = "blue" |
| 1107 | |
| 1108 | def test_parse_enum_value(self): |
| 1109 | parser = argparse.ArgumentParser() |
| 1110 | parser.add_argument('--color', choices=self.Color) |
| 1111 | args = parser.parse_args(['--color', 'red']) |
| 1112 | self.assertEqual(args.color, self.Color.RED) |
| 1113 | |
| 1114 | @force_not_colorized |
| 1115 | def test_help_message_contains_enum_choices(self): |
nothing calls this directly
no test coverage detected