(self)
| 5964 | self.assertStringEqual(option, string) |
| 5965 | |
| 5966 | def test_argument(self): |
| 5967 | argument = argparse.Action( |
| 5968 | option_strings=[], |
| 5969 | dest='x', |
| 5970 | type=float, |
| 5971 | nargs='?', |
| 5972 | default=2.5, |
| 5973 | choices=[0.5, 1.5, 2.5], |
| 5974 | required=True, |
| 5975 | help='H HH H', |
| 5976 | metavar='MV MV MV') |
| 5977 | string = ( |
| 5978 | "Action(option_strings=[], dest='x', nargs='?', " |
| 5979 | "const=None, default=2.5, type=%r, choices=[0.5, 1.5, 2.5], " |
| 5980 | "required=True, help='H HH H', metavar='MV MV MV', " |
| 5981 | "deprecated=False)" % float) |
| 5982 | self.assertStringEqual(argument, string) |
| 5983 | |
| 5984 | def test_namespace(self): |
| 5985 | ns = argparse.Namespace(foo=42, bar='spam') |
nothing calls this directly
no test coverage detected