(self)
| 1007 | BLUE = "blue" |
| 1008 | |
| 1009 | def test_parse_enum_value(self): |
| 1010 | parser = argparse.ArgumentParser() |
| 1011 | parser.add_argument('--color', choices=self.Color) |
| 1012 | args = parser.parse_args(['--color', 'red']) |
| 1013 | self.assertEqual(args.color, self.Color.RED) |
| 1014 | |
| 1015 | @force_not_colorized |
| 1016 | def test_help_message_contains_enum_choices(self): |
nothing calls this directly
no test coverage detected