Checks .uuid_fmt, and raises an exception if it is not valid.
(self)
| 3833 | Field.__init__(self, name, default, "16s") |
| 3834 | |
| 3835 | def _check_uuid_fmt(self): |
| 3836 | # type: () -> None |
| 3837 | """Checks .uuid_fmt, and raises an exception if it is not valid.""" |
| 3838 | if self.uuid_fmt not in UUIDField.FORMATS: |
| 3839 | raise FieldValueRangeException( |
| 3840 | "Unsupported uuid_fmt ({})".format(self.uuid_fmt)) |
| 3841 | |
| 3842 | def i2m(self, pkt, x): |
| 3843 | # type: (Optional[Packet], Optional[UUID]) -> bytes |
no test coverage detected