(self)
| 1629 | |
| 1630 | @reraise_if_not_enum(FloatStooges) |
| 1631 | def test_floatenum_fromhex(self): |
| 1632 | h = float.hex(FloatStooges.MOE.value) |
| 1633 | self.assertIs(FloatStooges.fromhex(h), FloatStooges.MOE) |
| 1634 | h = float.hex(FloatStooges.MOE.value + 0.01) |
| 1635 | with self.assertRaises(ValueError): |
| 1636 | FloatStooges.fromhex(h) |
| 1637 | |
| 1638 | def test_programmatic_function_type(self): |
| 1639 | MinorEnum = Enum('MinorEnum', 'june july august', type=int) |
nothing calls this directly
no test coverage detected